Struts 2 Action Tag

'action' Tag in Struts 2 is used by developer to call action class from a JSP page. For calling the action class, developer must assign action name. Struts 2 Action Tag is one of the Data Tags, which are used for data manipulation or creation.

Struts 2 Action Tag


Struts 2 Action Tag

"action" Tag in Struts 2 is used by developer to call action class from a JSP page. For calling the action class, developer must assign action name.

Struts 2 Action Tag is one of the Data Tags, which are used for data manipulation or creation.

When executeResult parameter is specified as True, the method is executed and the result page is rendered directly in the view. But if executeResult parameter is not specified, result page will be displayed as result processor defined for this action in struts.xml will be ignored.

Following example will further explain the complete use of Struts 2 Action Tag:

(example)