• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using ActionMapping to open a https page

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic