This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSLExt, Tiles, Struts 1.3.5  RSS feed

Patrick McDonogh
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There All,

I apologise this is such a long problem but i dont know of another way to explain it.

I am having lots of problems getting SSLExt to work with Struts 1.3 and i am also using the tiles plugin.

I think the problem is that i am using tiles and have not configured something properly.

I followed the instructions at with how to do this but i am sure that i have to do something different when using tiles.

Does anyone know?

This is what i did.

I downloaded the struts13-sslext-command-1.0.jar as specified and added the org/nkp/struts13/sslext/sslext-chain-config.xml to the chainConfig in my web.xml

So it now reads

I then modified my action-mappings elements as do:

<action-mappings type="org.apache.struts.config.SecureActionConfig">

I then configured the Secure Plugin in my struts-config.xml

<plug-in className="org.apache.struts.action.SecurePlugIn">
<set-property property="httpPort" value="8080"/>
<set-property property="httpsPort" value="8443"/>
<set-property property="enable" value="true"/>
<set-property property="addSession" value="true"/>

I then added <set-property property="secure" value="true"/> to one of my actions that i want to be secure.


<action path="/login" forward="">
<set-property property="secure" value="true"/>

I then start tomcat (which is configured for use with ssl and tested and worked).

I then go to my application using just http on port 8080 and click on login which fires the /login action but it doesn't switch to ssl.
I was expecting is to switch and use port 8443 which is the correct ssl port on my tomcat server, but it doesnt change at all.

There are no errors on startup or anything.

I put a debugger in the SSLExtCommand class and the breakpoint is never hit, so this classes execute method is not being used.

Does anyone have any suggestions?

Please remember i am using struts 1.3.5 and also the tiles plugin to manage my pages.

Thank you for any help with this as its driving me crazy.


Patrick McDonogh
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of another way to switch between http and https rather than using sslext?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!