my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using ActionMapping to open a https page" Watch "Using ActionMapping to open a https page" New topic
Author

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-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

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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using ActionMapping to open a https page
 
Similar Threads
Redisplaying a page after validation due to validation errors?
How to use Formbean's validate method?
struts
How to specify absolute path in struts-config
How to encode the path attribute in action mapping