📄 actionconfig.html
字号:
form bean is accessed, if it is different from the form bean's specified <code>name</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>attribute name under which our form bean is accessed.</DL>
</DD>
</DL>
<HR>
<A NAME="setAttribute(java.lang.String)"><!-- --></A><H3>
setAttribute</H3>
<PRE>
public void <B>setAttribute</B>(java.lang.String attribute)</PRE>
<DL>
<DD>Set the request-scope or session-scope attribute name under which our form bean is accessed, if it is different from the form bean's specified <code>name</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attribute</CODE> - the request-scope or session-scope attribute name under which our form bean is access.</DL>
</DD>
</DL>
<HR>
<A NAME="getForward()"><!-- --></A><H3>
getForward</H3>
<PRE>
public java.lang.String <B>getForward</B>()</PRE>
<DL>
<DD>Returns context-relative path of the web application resource that will process this request.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>context-relative path of the web application resource that will process this request.</DL>
</DD>
</DL>
<HR>
<A NAME="setForward(java.lang.String)"><!-- --></A><H3>
setForward</H3>
<PRE>
public void <B>setForward</B>(java.lang.String forward)</PRE>
<DL>
<DD>Set the context-relative path of the web application resource that will process this request. Exactly one of <code>forward</code>, <code>include</code>, or <code>type</code> must be specified.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>forward</CODE> - context-relative path of the web application resource that will process this request.</DL>
</DD>
</DL>
<HR>
<A NAME="getInclude()"><!-- --></A><H3>
getInclude</H3>
<PRE>
public java.lang.String <B>getInclude</B>()</PRE>
<DL>
<DD>Context-relative path of the web application resource that will process this request.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Context-relative path of the web application resource that will process this request.</DL>
</DD>
</DL>
<HR>
<A NAME="setInclude(java.lang.String)"><!-- --></A><H3>
setInclude</H3>
<PRE>
public void <B>setInclude</B>(java.lang.String include)</PRE>
<DL>
<DD>Set context-relative path of the web application resource that will process this request. Exactly one of <code>forward</code>, <code>include</code>, or <code>type</code> must be specified.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>include</CODE> - context-relative path of the web application resource that will process this request.</DL>
</DD>
</DL>
<HR>
<A NAME="getInput()"><!-- --></A><H3>
getInput</H3>
<PRE>
public java.lang.String <B>getInput</B>()</PRE>
<DL>
<DD>Get the context-relative path of the input form to which control should be returned if a validation error is encountered.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>context-relative path of the input form to which control should be returned if a validation error is encountered.</DL>
</DD>
</DL>
<HR>
<A NAME="setInput(java.lang.String)"><!-- --></A><H3>
setInput</H3>
<PRE>
public void <B>setInput</B>(java.lang.String input)</PRE>
<DL>
<DD>Set the context-relative path of the input form to which control should be returned if a validation error is encountered. Required if "name" is specified and the input bean returns validation errors.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - context-relative path of the input form to which control should be returned if a validation error is encountered.</DL>
</DD>
</DL>
<HR>
<A NAME="getMultipartClass()"><!-- --></A><H3>
getMultipartClass</H3>
<PRE>
public java.lang.String <B>getMultipartClass</B>()</PRE>
<DL>
<DD>Return the fully qualified Java class name of the <code>MultipartRequestHandler</code> implementation class used to process multi-part request data for this Action.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setMultipartClass(java.lang.String)"><!-- --></A><H3>
setMultipartClass</H3>
<PRE>
public void <B>setMultipartClass</B>(java.lang.String multipartClass)</PRE>
<DL>
<DD>Set the fully qualified Java class name of the <code>MultipartRequestHandler</code> implementation class used to process multi-part request data for this Action.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>multipartClass</CODE> - fully qualified class name of the <code>MultipartRequestHandler</code> implementation class.</DL>
</DD>
</DL>
<HR>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Return name of the form bean, if any, associated with this Action.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String name)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - name of the form bean associated with this Action.</DL>
</DD>
</DL>
<HR>
<A NAME="getParameter()"><!-- --></A><H3>
getParameter</H3>
<PRE>
public java.lang.String <B>getParameter</B>()</PRE>
<DL>
<DD>Return general purpose configuration parameter that can be used to pass extra information to the Action instance selected by this Action. Struts does not itself use this value in any way.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setParameter(java.lang.String)"><!-- --></A><H3>
setParameter</H3>
<PRE>
public void <B>setParameter</B>(java.lang.String parameter)</PRE>
<DL>
<DD>General purpose configuration parameter that can be used to pass extra information to the Action instance selected by this Action. Struts does not itself use this value in any way.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parameter</CODE> - General purpose configuration parameter.</DL>
</DD>
</DL>
<HR>
<A NAME="getPath()"><!-- --></A><H3>
getPath</H3>
<PRE>
public java.lang.String <B>getPath</B>()</PRE>
<DL>
<DD>Return context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename extension if extension mapping is being used.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPath(java.lang.String)"><!-- --></A><H3>
setPath</H3>
<PRE>
public void <B>setPath</B>(java.lang.String path)</PRE>
<DL>
<DD>Set context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename extension if extension mapping is being used.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - context-relative path of the submitted request.</DL>
</DD>
</DL>
<HR>
<A NAME="getPrefix()"><!-- --></A><H3>
getPrefix</H3>
<PRE>
public java.lang.String <B>getPrefix</B>()</PRE>
<DL>
<DD>Retruns prefix used to match request parameter names to form bean property names, if any.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPrefix(java.lang.String)"><!-- --></A><H3>
setPrefix</H3>
<PRE>
public void <B>setPrefix</B>(java.lang.String prefix)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - Prefix used to match request parameter names to form bean property names, if any.</DL>
</DD>
</DL>
<HR>
<A NAME="getRoles()"><!-- --></A><H3>
getRoles</H3>
<PRE>
public java.lang.String <B>getRoles</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setRoles(java.lang.String)"><!-- --></A><H3>
setRoles</H3>
<PRE>
public void <B>setRoles</B>(java.lang.String roles)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRoleNames()"><!-- --></A><H3>
getRoleNames</H3>
<PRE>
public java.lang.String[] <B>getRoleNames</B>()</PRE>
<DL>
<DD>Get array of security role names used to authorize access to this Action.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getScope()"><!-- --></A><H3>
getScope</H3>
<PRE>
public java.lang.String <B>getScope</B>()</PRE>
<DL>
<DD>Get the scope ("request" or "session") within which our form bean is accessed, if any.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setScope(java.lang.String)"><!-- --></A><H3>
setScope</H3>
<PRE>
public void <B>setScope</B>(java.lang.String scope)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - scope ("request" or "session") within which our form bean is accessed, if any.</DL>
</DD>
</DL>
<HR>
<A NAME="getSuffix()"><!-- --></A><H3>
getSuffix</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -