A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
struts2 + ssl plugin problem
vik ar
Ranch Hand
Joined: Jul 31, 2009
Posts: 104
posted
Aug 11, 2009 08:06:36
0
I have successfully configured ssl support on my
tomcat
6 sever as when I go to
https://localhost:8443
I see the tomcat splash page. I downloaded the
struts
plugin from
http://code.google.com/p/struts2-ssl-plugin/downloads/list
(v1.2) and followed the guidelines on the wiki
http://code.google.com/p/struts2-ssl-plugin/wiki/HowToUse
. My code is as follows
index.jsp
<%@ taglib prefix="s" uri="/struts-tags" %> <s:url id="urlSSLProtectedPage" action="User" namespace="/secured" /> <s:a href="%{urlSSLProtectedPage}">Go to an SSL protected page</s:a>
struts.xml
<package name="myPackage1" extends="ssl-default" namespace="/secured"> <interceptors> <interceptor-stack name="SecureStack"> <interceptor-ref name="secure"> <param name="useAnnotations">false</param> </interceptor-ref> <interceptor-ref name="defaultStack"/> </interceptor-stack> </interceptors> <action name="User"> <result>/jsp/Thanks.jsp</result> </action> </package>
When I click on the link on index.jsp (Go to an SSL protected page) I am redirected to
http://localhost:8080/ssltest/secured/User.action
. Why am I not being redirected to
https://localhost:8443/ssltest/secured/User.action
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: struts2 + ssl plugin problem
Similar Threads
How to configure tiles with JSF+Struts2 Integration ?
struts2 + interceptor
EJB3 Injection - how to Inject it into struts 2 Action?
Sturst2 + SSL plugin --installation problem
Problem With I18n feature of Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter