⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formtag.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
protected java.lang.String <B>action</B></PRE>
<DL>
<DD>The action URL to which this form should be submitted, if any.</DL>
<HR>

<A NAME="moduleConfig"><!-- --></A><H3>
moduleConfig</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>moduleConfig</B></PRE>
<DL>
<DD>The module configuration for our module.</DL>
<HR>

<A NAME="enctype"><!-- --></A><H3>
enctype</H3>
<PRE>
protected java.lang.String <B>enctype</B></PRE>
<DL>
<DD>The content encoding to be used on a POST submit.</DL>
<HR>

<A NAME="focus"><!-- --></A><H3>
focus</H3>
<PRE>
protected java.lang.String <B>focus</B></PRE>
<DL>
<DD>The name of the field to receive focus, if any.</DL>
<HR>

<A NAME="focusIndex"><!-- --></A><H3>
focusIndex</H3>
<PRE>
protected java.lang.String <B>focusIndex</B></PRE>
<DL>
<DD>The index in the focus field array to receive focus.  This only applies if the field given in the focus attribute is actually an array of fields.  This allows a specific field in a radio button array to receive focus while still allowing indexed field names like "myRadioButtonField[1]" to be passed in the focus attribute.<DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="lineEnd"><!-- --></A><H3>
lineEnd</H3>
<PRE>
protected static java.lang.String <B>lineEnd</B></PRE>
<DL>
<DD>The line ending string.</DL>
<HR>

<A NAME="mapping"><!-- --></A><H3>
mapping</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> <B>mapping</B></PRE>
<DL>
<DD>The ActionMapping defining where we will be submitting this form</DL>
<HR>

<A NAME="messages"><!-- --></A><H3>
messages</H3>
<PRE>
protected static <A HREF="../../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>messages</B></PRE>
<DL>
<DD>The message resources for this package.</DL>
<HR>

<A NAME="method"><!-- --></A><H3>
method</H3>
<PRE>
protected java.lang.String <B>method</B></PRE>
<DL>
<DD>The request method used when submitting this form.</DL>
<HR>

<A NAME="onreset"><!-- --></A><H3>
onreset</H3>
<PRE>
protected java.lang.String <B>onreset</B></PRE>
<DL>
<DD>The onReset event script.</DL>
<HR>

<A NAME="onsubmit"><!-- --></A><H3>
onsubmit</H3>
<PRE>
protected java.lang.String <B>onsubmit</B></PRE>
<DL>
<DD>The onSubmit event script.</DL>
<HR>

<A NAME="scriptLanguage"><!-- --></A><H3>
scriptLanguage</H3>
<PRE>
protected boolean <B>scriptLanguage</B></PRE>
<DL>
<DD>Include language attribute in the focus script's &lt;script&gt; element.  This property is ignored in XHTML mode.<DD><DL>
<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="servlet"><!-- --></A><H3>
servlet</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A> <B>servlet</B></PRE>
<DL>
<DD>The ActionServlet instance we are associated with (so that we can initialize the <code>servlet</code> property on any form bean that we create).</DL>
<HR>

<A NAME="style"><!-- --></A><H3>
style</H3>
<PRE>
protected java.lang.String <B>style</B></PRE>
<DL>
<DD>The style attribute associated with this tag.</DL>
<HR>

<A NAME="styleClass"><!-- --></A><H3>
styleClass</H3>
<PRE>
protected java.lang.String <B>styleClass</B></PRE>
<DL>
<DD>The style class associated with this tag.</DL>
<HR>

<A NAME="styleId"><!-- --></A><H3>
styleId</H3>
<PRE>
protected java.lang.String <B>styleId</B></PRE>
<DL>
<DD>The identifier associated with this tag.</DL>
<HR>

<A NAME="target"><!-- --></A><H3>
target</H3>
<PRE>
protected java.lang.String <B>target</B></PRE>
<DL>
<DD>The window target.</DL>
<HR>

<A NAME="beanName"><!-- --></A><H3>
beanName</H3>
<PRE>
protected java.lang.String <B>beanName</B></PRE>
<DL>
<DD>The name of the form bean to (create and) use. This is either the same as the 'name' attribute, if that was specified, or is obtained from the associated <code>ActionMapping</code> otherwise.</DL>
<HR>

<A NAME="beanScope"><!-- --></A><H3>
beanScope</H3>
<PRE>
protected java.lang.String <B>beanScope</B></PRE>
<DL>
<DD>The scope of the form bean to (create and) use. This is either the same as the 'scope' attribute, if that was specified, or is obtained from the associated <code>ActionMapping</code> otherwise.</DL>
<HR>

<A NAME="beanType"><!-- --></A><H3>
beanType</H3>
<PRE>
protected java.lang.String <B>beanType</B></PRE>
<DL>
<DD>The type of the form bean to (create and) use. This is either the same as the 'type' attribute, if that was specified, or is obtained from the associated <code>ActionMapping</code> otherwise.</DL>
<HR>

<A NAME="acceptCharset"><!-- --></A><H3>
acceptCharset</H3>
<PRE>
protected java.lang.String <B>acceptCharset</B></PRE>
<DL>
<DD>The list of character encodings for input data that the server should accept.</DL>
<HR>

<A NAME="disabled"><!-- --></A><H3>
disabled</H3>
<PRE>
private boolean <B>disabled</B></PRE>
<DL>
<DD>Controls whether child controls should be 'disabled'.</DL>
<HR>

<A NAME="readonly"><!-- --></A><H3>
readonly</H3>
<PRE>
protected boolean <B>readonly</B></PRE>
<DL>
<DD>Controls whether child controls should be 'readonly'.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="FormTag()"><!-- --></A><H3>
FormTag</H3>
<PRE>
public <B>FormTag</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getBeanName()"><!-- --></A><H3>
getBeanName</H3>
<PRE>
public java.lang.String <B>getBeanName</B>()</PRE>
<DL>
<DD>Return the name of the form bean corresponding to this tag. There is no corresponding setter method; this method exists so that the nested tag classes can obtain the actual bean name derived from other attributes of the tag.</DL>
<HR>

<A NAME="getAction()"><!-- --></A><H3>
getAction</H3>
<PRE>
public java.lang.String <B>getAction</B>()</PRE>
<DL>
<DD>Return the action URL to which this form should be submitted.</DL>
<HR>

<A NAME="setAction(java.lang.String)"><!-- --></A><H3>
setAction</H3>
<PRE>
public void <B>setAction</B>(java.lang.String&nbsp;action)</PRE>
<DL>
<DD>Set the action URL to which this form should be submitted.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>action</CODE> - The new action URL</DL>
</DD>
</DL>
<HR>

<A NAME="getEnctype()"><!-- --></A><H3>
getEnctype</H3>
<PRE>
public java.lang.String <B>getEnctype</B>()</PRE>
<DL>
<DD>Return the content encoding used when submitting this form.</DL>
<HR>

<A NAME="setEnctype(java.lang.String)"><!-- --></A><H3>
setEnctype</H3>
<PRE>
public void <B>setEnctype</B>(java.lang.String&nbsp;enctype)</PRE>
<DL>
<DD>Set the content encoding used when submitting this form.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enctype</CODE> - The new content encoding</DL>
</DD>
</DL>
<HR>

<A NAME="getFocus()"><!-- --></A><H3>
getFocus</H3>
<PRE>
public java.lang.String <B>getFocus</B>()</PRE>
<DL>
<DD>Return the focus field name for this form.</DL>
<HR>

<A NAME="setFocus(java.lang.String)"><!-- --></A><H3>
setFocus</H3>
<PRE>
public void <B>setFocus</B>(java.lang.String&nbsp;focus)</PRE>
<DL>
<DD>Set the focus field name for this form.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>focus</CODE> - The new focus field name</DL>
</DD>
</DL>
<HR>

<A NAME="getMethod()"><!-- --></A><H3>
getMethod</H3>
<PRE>
public java.lang.String <B>getMethod</B>()</PRE>
<DL>
<DD>Return the request method used when submitting this form.</DL>
<HR>

<A NAME="setMethod(java.lang.String)"><!-- --></A><H3>
setMethod</H3>
<PRE>
public void <B>setMethod</B>(java.lang.String&nbsp;method)</PRE>
<DL>
<DD>Set the request method used when submitting this form.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The new request method</DL>
</DD>
</DL>
<HR>

<A NAME="getOnreset()"><!-- --></A><H3>
getOnreset</H3>
<PRE>
public java.lang.String <B>getOnreset</B>()</PRE>
<DL>
<DD>Return the onReset event script.</DL>
<HR>

<A NAME="setOnreset(java.lang.String)"><!-- --></A><H3>
setOnreset</H3>
<PRE>
public void <B>setOnreset</B>(java.lang.String&nbsp;onReset)</PRE>
<DL>
<DD>Set the onReset event script.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>onReset</CODE> - The new event script</DL>
</DD>
</DL>
<HR>

<A NAME="getOnsubmit()"><!-- --></A><H3>
getOnsubmit</H3>
<PRE>
public java.lang.String <B>getOnsubmit</B>()</PRE>
<DL>
<DD>Return the onSubmit event script.</DL>
<HR>

<A NAME="setOnsubmit(java.lang.String)"><!-- --></A><H3>
setOnsubmit</H3>
<PRE>
public void <B>setOnsubmit</B>(java.lang.String&nbsp;onSubmit)</PRE>
<DL>
<DD>Set the onSubmit event script.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>onSubmit</CODE> - The new event script</DL>
</DD>
</DL>
<HR>

<A NAME="getStyle()"><!-- --></A><H3>
getStyle</H3>
<PRE>
public java.lang.String <B>getStyle</B>()</PRE>
<DL>
<DD>Return the style attribute for this tag.</DL>
<HR>

<A NAME="setStyle(java.lang.String)"><!-- --></A><H3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -