Google News
logo
Java Struts - Interview Questions
How we can configured action mapping in Struts?
To configure the Struts2 action mapping we have to add an action node inside the configuration file struts.xml.
 
Here is an example for this:
<action name="*welcome" class="example.action.mapping.LinkAction" method="execute">

     <result name="success">/welcome.jsp</result>

     <result name="error">/error.jsp</result>

</action>
Advertisement