Para a criação fácil de relações de usuário, os suportes fornecem a biblioteca do Tag do HTML. Para o desenvolvimento de relações de usuário, nesta lição eu mostrar-lhe-ei o que todos os Tag do HTML dos suportes estão disponíveis a JSP.
Início nos nós temos que incluir a linha seguindo em nossa lima de JSP para usar os Tag do HTML dos suportes:
prefix= " HTML " %> do uri= " /tags/struts-html " do taglib de <%@
acima dos makes do código disponíveis o Tag ao jsp.
A seguinte tabela mostra os Tag diferentes do HTML disponíveis nos suportes
Struts HTML Tags
Description
<html:message key="thekey"/>
Looks up the message corresponding to the given key in the message resources and displays it.
<html:password property="prop" size="10"/>
Tag creates the password field.The string is stored in the property named prop in the form bean.
<html:text property="text1" size="5"/>
Tag creates the text field.The string is retrieved from and later stored in the property
named text1 in the form bean.
<html:submit>Submit</html:submit>
Tag creates a submit
button with the provided content as the button text.
<html:reset>Reset</html:reset>
Tag creates a reset button with the provided content as the button text.
<html:errors/>
Tag prints all the available error on the page.
<html:file property="fileSelectionBox"/>
Tag creates the file upload element on the form.The property must be of the type
org.apache.struts.upload.FormFile.
Tag creates list box
on the form. The property selectBox must be an array of supported
data-types, and the user may select several entries. Use <html:options>
to specify the entries.
Tag is used to create
the HTML Form for posting the data on the server.
<html:base/>
Tag generates the
base tag. <BASE ...> tells the browser to
pretend that the current page is located at some URL other than where
the browser found it.Any relative reference will be calculated from the
URL given by <BASE HREF="..."> instead of the
actual URL. <BASE ...> goes in the
<HEAD> section.
<html:html>
Tag renders an HTML
<html> Element.
No Address.jsp que está na página do previour nós usamos alguns de Tag acima
Keywords:
struts html tags,struts tags html,struts web xml,struts html tag,jsp tags,html reference,java tags,html list,struts tutorial,html tutorial,java struts,struts logic tags,jsf html tags,struts examples,struts nested tags,struts html form,struts example