• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using ActionMapping to open a https page

 
Avneet Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic