Wrap these JSP pages with a few simple steps, for example:
The struts.xml method:
<action name="example"> <result>example.jsp</result> </action>
or plug-in path to the Convention, create the class as follows:
class ExampleAction extends ActionSupport { @Override public String execute() { return "example";
And then whenever you linked to example.jsp use example.action
source share