Note |
---|
Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. |
Description
Wiki Markup |
---|
{snippet:id=javadoc|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Submit} |
...
Note |
---|
To use method attribute (to use multiple submit buttons which direct to different action methods) you must set struts.enable.DynamicMethodInvocation to true but this can lead to security vulnerability - use with care! Instead you can try to use Multiple Submit Buttons solution. |
Note |
---|
This tag works with all themes, but has special importance when combined with the form tag in the ajax theme. Please read up on the ajax theme for more information. |
Parameters
Wiki Markup |
---|
{snippet:id=tagattributes|javadoc=false|url=webwork/docs/struts2-tags/Submit.html} |
Examples
Example 1
Wiki Markup |
---|
{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Example 2
Wiki Markup |
---|
{snippet:id=example2|lang=xml|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Example 3
Wiki Markup |
---|
{snippet:id=example3|lang=xml|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Example 4
Wiki Markup |
---|
{snippet:id=ajxExDescription1|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Wiki Markup |
---|
{snippet:id=ajxExample1|javadoc=true|lang=xml|url=com.opensymphony.webwork.components.Submit} |
Example 5
Wiki Markup |
---|
{snippet:id=ajxExDescription2|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Wiki Markup |
---|
{snippet:id=ajxExample2|javadoc=true|lang=xml|url=com.opensymphony.webwork.components.Submit} |
Example 6
Wiki Markup |
---|
{snippet:id=ajxExDescription3|javadoc=true|url=com.opensymphony.webwork.components.Submit} |
Wiki Markup |
---|
{snippet:id=ajxExample3|javadoc=true|lang=xml|url=com.opensymphony.webwork.components.Submitsubmit.html} |