有一段跟计算机有关的英语文献求高手帮翻译!

谢谢!
Adding the view and form tags
All JavaServer Faces pages are represented by a tree of components,called a view. The view tag represents the root of the view. All JavaServer Faces component tags must be insie of a view tag, which is defined in the core tag library.
The form tag represents an input form component, which allows the user to input some data and submit it to the server,usually by clicking a button.All UI component tags the represent editable components(such as text fields and menus) must be nested in side the form tag.In the case of the greeting.Jsp page,some of the tags contained in the form are outputText,inputext,commandButton ,and message . You can specify an ID for the form tag.This ID maps to the associated form UI component on the server.
With the view and form tags added, our page looks like this (minus the HTML and HEAD tags):
… …
Adding a Label component
The outputText tag represents a label.the greting.Jsp page has two outputText tags.One of the tags displays the number0.The other tag displays the number 10:
… …
The value attributes of the tags get the values from the minimum and maximum properties of UserNumberBean using value expressions, which are used to reference data stored in other objects,such as beans.See”Backing Beans” on page 309 for more information on value expressions.
With the addition of the outputText tags(along with some static text),the greeting page looks like the following:
… …
Adding an Image
To display images on page,you use the graphicImage tag.The urlattribute of the tag specifies the path to the image file.Let’s add Duke to the page using a graphicImage tag:
… …
Adding a TextField
The imputText tag represents a text field component.In the guessNumber example,this text field takes an integer input value.The instance of this tag included in greeting.Jsp has three attributes:id,laber,and value
… …
The id attribute corresponds to the ID of the component object represented by this tag.In this case,an id attribute is required because the message tag(which is used to display validation error messages) needs it to refer to the user No component.
The label attribute specifies the name to be used by error messages to refer to the component. In this example, label is set to User Number.As an example,if a user were to enter 23, the error message that would be displayed is :
User Number:Validation Error: Value is greater than allowable maximum of 10.
The value attribute binds the userNo component value to the bean property UserNumberBean.userNumber,which holds the data entered into the text field..
After adding the imputText tag, the greeting page looks like the following:

增加看法和形式标记
All JavaServer面孔页由组分树代表,称看法。 看法标记代表看法的根。 所有JavaServer面孔组分标记必须是看法标记的insie,在核心标记图书馆里被定义。
The形式标记通过点击按钮通常代表输入形式组分,允许用户输入一些数据和递交它给服务器。所有UI组分标记编辑可能的组分的代表(例如文本领域和菜单)在边必须筑巢形式标记。在问候情况下。Jsp页,以形式包含的某些标记是outputText、inputext、commandButton和消息。 您能为形式标记指定ID。这ID映射对在服务器上的伴生的形式UI组分。
With看法和形式标记增加了,我们的页看上去象这个(减HTML和顶头标记) :
… …
Adding标签组分
The outputText标记代表greting的label.the。Jsp页有二个outputText标记。其中一个标记显示number0.The其他标记显示第10 :
… …
The标记的价值属性从UserNumberBean极小和最大物产得到价值使用价值表示,用于在其他对象存放的参考数据,例如豆。在第309页的See”Backing Beans”关于价值表示的更多信息。 增加outputText的标记(与一些静态文本一起),问候页看起来以下:
… …
Adding图象
To在页,您的复显图象使用graphicImage标记。标记的urlattribute指定道路对图象文件。使用graphicImage标记, Let’s增加公爵到页:
… …
Adding TextField
The imputText标记代表文本领域组分。在guessNumber例子中,这个文本领域采取整数输入价值。在问候包括的这个标记事例。Jsp有三个属性:id、laber和价值
… …
The id属性对应于这个标记代表的组分对象的ID。在这种情况下,需要id属性,因为(被用于显示检验错误信息)的消息标记需要它提到用户没有组分。
The标签属性指定名字是提到组分的因失误使用的消息。 在本例中,标签被设置对用户数字为例,如果用户将进入23,将被显示是的错误信息:
User数字:检验错误: 价值比允许的最多伟大10。
The价值属性束缚userNo组分价值对豆物产UserNumberBean.userNumber,对数据负输入文本领域。 增加imputText的After标记,问候页看起来以下:
温馨提示:答案为网友推荐,仅供参考
第1个回答  2008-03-09
加入这项意见,并形成标签
所有JavaServer界面的网页是由一树的组成部分,所谓的看法。观点标签代表的根本的看法。所有JavaServer界面组件标签必须insie一期标签,它的定义是在核心标签库。
该表单标签代表着一种投入的形式组成,这使用户能够输入一些数据,并提交给服务器,通常是通过点击button.all的UI组件标签的代表可编辑组件(如文本字段和菜单) ,必须在嵌套方形式tag.in至于greeting.jsp页,其中一些标签载于表格outputtext , inputext , commandbutton ,和讯息。你可以指定一个ID为形式tag.this身份证地图向美联社形式的UI组件放在服务器上。
这一观点,并形成标签补充说,我们可以看到这样的(减去HTML和头部标签) :
… …
加入一个标签组件
该outputtext标签代表了label.the greting.jsp页有两个outputtext tags.one的标签显示number0.the其他标签显示号码10 :
… …
价值属性的标签获得价值,从最低和最高性能的usernumberbean利用价值的表述中,哪些是用来参考的数据储存在其他物体,如beans.see "后盾豆" ,对309页的更多信息,价值表情。
与增补的outputtext标签(加上一些静态文本) ,贺页看起来象如下:
… …
加入图像
显示图像时,你可以使用graphicimage tag.the urlattribute的标签指明的道路,以形象file.let奇摩放入杜克至该页面使用graphicimage标签:
… …
添加文本
该imputtext标签代表一个文本场component.in该guessnumber举例说,此文本字段需要一个整型输入值的实例此标签列入greeting.jsp有三个特质:身份证, laber和价值
… …
身份证属性对应的ID的组件对象为代表的这tag.in这种情况下,一个身分属性,是因为所需的信息标签(这是用来显示验证错误信息)的需要,它是指用户没有其它的组件。
标签属性指定的名字被人利用的错误讯息转介给元件。在这个例子中,标签,是一套以用户number.as为例,如果用户要进入23条的规定,错误信息将被显示的是:
用户号码:确认错误:价值大于所允许的最多10个。
价值属性的结症userno组成价值向bean属性usernumberbean.usernumber ,掌握数据进入文本字段..
而在加入imputtext标签,迎接页看起来象如下:本回答被提问者采纳
相似回答