In Struts2 we can define action without using action class in struts.xml
as follows:
<action name="error">
<result>/error.jsp</result>
</action>
In my application I am using struts2 convention
. In this case how to avoid writing action classes. I have many scenarios where I just want to go to the page without using any business logic.
My result path is not just a JSP. I am using tiles. I am using code as follows:
@Action(value="homePage", results={@Result(name="success", location="homePage", type="tiles")})