Saturday, 15 February 2014

java - How to redirect the control from interceptor to jsp incase of error in interceptor -



java - How to redirect the control from interceptor to jsp incase of error in interceptor -

how pass command interceptor jsp. have interceptor create checks whether app server or downwards reading flag database. if app downwards need redirect command jsp current interceptor. tried declaring result in <global-results> didn't work me.

<global-results> <action name="downtime"> <result>maintenancepage.jsp</result> </action> </global-results>

can 1 suggest do?

the of import part of global result should have name , absolute path.

<global-results> <result name="downtime">/maintenancepage.jsp</result> </global-results>

you can homecoming result action or interceptor of bundle result defined or inherited, , don't need configure action because it's global. dispatcher type result, if need other types need alter result configuration type attribute , location.

java jsp configuration struts2 actionresult

No comments:

Post a Comment