java - How to return a HTML page from struts.xml itself without going to an action? -
if request made html page, how return directly struts.xml
without going action?
create action has result in struts.xml
doesn't have class
, i.e.
<package name="default" extends="struts-default"> <action name="index"> <result name="mypage">/path/to/page.html</result> </action>
you create global result, found action, i.e
<global-results> <result name="mypage">/path/to/page.html</result> </global-results> <action name="index"/>
you create interceptor returns result while intercepting , action. these essential elements of configuration invoke dispatcher forward requested page.
Comments
Post a Comment