in struts we define forward tag under action to forward to a page how can we make that an https page. <action-mapping> <action path="..." type="..." > <forward name="success" path="/WEB-INF/ccard/ccard.jsp" /> </action> </action-mappingss> how can we have this path as an https
basically after a certain action i want to send user to https page and also can i have redirect="true" under forward tag above.
Thanks to all in advance Avneet
posted 9 years ago
All you have to do is specify the full URL of the page you wish to use SSL, including the "HTTPS//:" in the forward and also specify redirect="true".
Since you can't directly display a JSP that is in /WEB-INF when redirect="true" is specified, you will have to create an action that forwards to your ccard.jsp page without redirect="true" and call the action.