java - Modify the .jsp argument in Struts -


i trying create interceptor in struts modify .jsp page name. reason being want each page wrapped in container page, include of defaults (css, scripts, etc). have created basic interceptor can't see (a) how .jsp page url (b) how return modified .jsp url.

<action name="myaction" method="{1}" class="actionclass">     <result name="dosomthing">mypage.jsp</result> </action> 

in above want create interceptor take "mypage.jsp", , allow me return modified string - ie "container.jsp?content=myjsp.jsp". actual modified string vary depending on other parameters.

i have working - interceptor being called - don't know put in intercept method!

thanks


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -