File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Using ActionMapping to open a https page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using ActionMapping to open a https page" Watch "Using ActionMapping to open a https page" New topic

Using ActionMapping to open a https page

Avneet Singh
Ranch Hand

Joined: Apr 25, 2006
Posts: 51
Hi all

in struts we define forward tag under action to forward to a page how can we make that an https page.
<action path="..." type="..." >
<forward name="success" path="/WEB-INF/ccard/ccard.jsp" />
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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Using ActionMapping to open a https page
It's not a secret anymore!