📄 struts-html.tld
字号:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"><taglib> <tlib-version>1.3</tlib-version> <jsp-version>1.2</jsp-version> <short-name>html</short-name> <uri>http://struts.apache.org/tags-html</uri> <description> <![CDATA[ <p> This taglib contains tags used to create struts input forms, as well as other tags generally useful in the creation of HTML-based user interfaces. </p> <p>Many of the tags in this tag library will throw a <code>JspException</code> at runtime when they are utilized incorrectly (such as when you specify an invalid combination of tag attributes). JSP allows you to declare an "error page" in the <code><%@ page %></code> directive. If you wish to process the actual exception that caused the problem, it is passed to the error page as a request attribute under key <code>org.apache.struts.action.EXCEPTION</code>.</p> ]]> </description> <tag> <name>base</name> <tag-class>org.apache.struts.taglib.html.BaseTag</tag-class> <body-content>empty</body-content> <description> <![CDATA[ <p><strong>Render an HTML <code><base></code> Element</strong></p> <p>Renders an HTML <code><base></code> element with an <code>href</code> attribute pointing to the absolute location of the enclosing JSP page. This tag is valid only when nested inside an HTML <code><head></code> element.</p> <p>This tag is useful because it allows you to use relative URL references in the page that are calculated based on the URL of the page itself, rather than the URL to which the most recent submit took place (which is where the browser would normally resolve relative references against).</p> ]]> </description> <attribute> <name>target</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The window target for this base reference.</p> ]]> </description> </attribute> <attribute> <name>server</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The server name to use instead of request.getServerName().</p> ]]> </description> </attribute> <attribute> <name>ref</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The reference from which the base uri will created. Possible values are: </p> <ul> <li><code>page</code> - The base uri will be the jsp page location. (default)</li> <li><code>site</code> - The base uri will be the application context path.</li> </ul> <dl><dt><b>Since:</b></dt> <dd>Struts 1.3</dd></dl> ]]> </description> </attribute> </tag> <tag> <name>button</name> <tag-class>org.apache.struts.taglib.html.ButtonTag</tag-class> <description> <![CDATA[ <p><strong>Render A Button Input Field</strong></p> <p> Renders an HTML <input> element of type <code>button</code>, populated from the specified value or the content of this tag body. This tag is only valid when nested inside a form tag body. </p> <p> If a graphical button is needed (a button with an image), then the <a href="#image"><code>image</code></a> tag is more appropriate. </p> ]]> </description> <attribute> <name>accesskey</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The keyboard character used to move focus immediately to this element.</p> ]]> </description> </attribute> <attribute> <name>alt</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The alternate text for this element.</p> ]]> </description> </attribute> <attribute> <name>altKey</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The message resources key of the alternate text for this element.</p> ]]> </description> </attribute> <attribute> <name>bundle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ <p>The servlet context attributes key for the MessageResources instance to use. If not specified, defaults to the application resources configured for our action servlet.</p> <dl><dt><b>Since:</b></dt> <dd>Struts 1.2.5</dd></dl> ]]> </description> </attribute> <attribute> <name>disabled</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>boolean</type> <description> <![CDATA[ <p>Set to <code>true</code> if this input field should be disabled.</p> ]]> </description> </attribute> <attribute> <name>indexed</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <type>boolean</type> <description> <![CDATA[ <p>Valid only inside of <code>logic:iterate</code> tag. If <code>true</code> then name of the html tag will be rendered as "propertyName[34]". Number in brackets will be generated for every iteration and taken from ancestor logic:iterate tag.</p> ]]> </description> </attribute> <attribute> <name>onblur</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element loses input focus. ]]> </description> </attribute> <attribute> <name>onchange</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element loses input focus and its value has changed. ]]> </description> </attribute> <attribute> <name>onclick</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element receives a mouse click. ]]> </description> </attribute> <attribute> <name>ondblclick</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element receives a mouse double click. ]]> </description> </attribute> <attribute> <name>onfocus</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element receives input focus. ]]> </description> </attribute> <attribute> <name>onkeydown</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element has focus and a key is depressed. ]]> </description> </attribute> <attribute> <name>onkeypress</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element has focus and a key is depressed and released. ]]> </description> </attribute> <attribute> <name>onkeyup</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element has focus and a key is released. ]]> </description> </attribute> <attribute> <name>onmousedown</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed. ]]> </description> </attribute> <attribute> <name>onmousemove</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element is under the mouse pointer and the pointer is moved. ]]> </description> </attribute> <attribute> <name>onmouseout</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element. ]]> </description> </attribute> <attribute> <name>onmouseover</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element. ]]> </description> </attribute> <attribute> <name>onmouseup</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ JavaScript event handler executed when this element is under the mouse pointer and a mouse button is released. ]]> </description> </attribute> <attribute> <name>property</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ Name of the request parameter that will be included with this submission, set to the specified value. ]]> </description> </attribute> <attribute> <name>style</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ CSS styles to be applied to this HTML element. ]]> </description> </attribute> <attribute> <name>styleClass</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description> <![CDATA[ CSS stylesheet class to be applied to this HTML element (renders a "class" attribute). ]]> </description> </attribute> <attribute> <name>styleId</name> <required>false</required>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -