In this section, we are going to describe the action tag. The action tag is a generic tag that is used to call actions directly from a JSP page by specifying the action name and an optional namespace. The body content of the tag is used to render the results from the Action. Any result processor defined for this action in struts.xml will be ignored, unless the executeResult parameter is specified.
Add the following code snippet into the struts.xml file.
|<action name="actionTag" class="net.roseindia.actionTag">
Create an action class as shown below:
Now create a jsp page using
tag as shown in the success.jsp
page. The action tag is used to call actions directly from a JSP page
by specifying the action name and an optional namespace.
Output of the success.jsp
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.