You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by alexj <al...@freesurf.ch> on 2003/03/02 19:04:35 UTC

Re: [OT] SSLExt question

Hi John,

Have you update your struts-config file and change action mapping
type like this way :

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

--
Alexandre Jaquet

----- Original Message -----
From: "John Dubchak" <jd...@qwest.net>
To: <st...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 7:08 PM
Subject: [OT] SSLExt question


Hello,

I'm hoping someone else has integrated Struts, Tiles and the SSL extensions
from sslext.sourceforge.net.  What I've done is tried to follow the sample
sslext application and add the plugin to struts-config.xml along with the
set-property secure="true" to a couple of my actions and now everything is
coming up as HTTP 400 errors.

I'm using Jetty and everything was working prior to adding the sslext stuff.
Here is an excerpt from my struts-config.xml file:

<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"/>
</plug-in>

And a sample from a login action:

<action path="/login-request"
type="org.apache.struts.actions.ForwardAction"
parameter="login">
<set-property property="secure" value="true"/>
</action>

I'll entertain any suggestions.

Thanks,
John

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by alexj <al...@freesurf.ch>.
have you add in your jsp the directive :
<%@ taglib uri="/WEB-INF/sslext.tld" prefix="sslext"%>



--

Alexandre Jaquet

----- Original Message ----- 
From: "John Dubchak" <jd...@qwest.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 8:13 PM
Subject: Re: [OT] SSLExt question


On Sunday 02 March 2003 12:46, alexj wrote:
> have you got the correct sslext.jar for your version of struts ?
> does the sample app work ?

Yes and yes.  ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by John Dubchak <jd...@qwest.net>.
On Sunday 02 March 2003 12:46, alexj wrote:
> have you got the correct sslext.jar for your version of struts ?
> does the sample app work ?

Yes and yes.  ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by alexj <al...@freesurf.ch>.
have you got the correct sslext.jar for your version of struts ?
does the sample app work ?

--
Alexandre Jaquet

----- Original Message -----
From: "John Dubchak" <jd...@qwest.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 7:57 PM
Subject: Re: [OT] SSLExt question


On Sunday 02 March 2003 12:30, alexj wrote:
> jetty is configured for ssl ?
>
> I don't know the procedure for jetty I use tomcat.

Yes, I also have jetty configured correctly and a keystore installed since I
can use SSL without struts.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by John Dubchak <jd...@qwest.net>.
On Sunday 02 March 2003 12:30, alexj wrote:
> jetty is configured for ssl ?
>
> I don't know the procedure for jetty I use tomcat.

Yes, I also have jetty configured correctly and a keystore installed since I 
can use SSL without struts.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by alexj <al...@freesurf.ch>.
jetty is configured for ssl ?

I don't know the procedure for jetty I use tomcat.

--
Alexandre Jaquet
----- Original Message -----
From: "John Dubchak" <jd...@qwest.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 7:51 PM
Subject: Re: [OT] SSLExt question


On Sunday 02 March 2003 12:23, alexj wrote:
> have you use the ssl form tag in your page ?
> <sslext:form action="/login">

No, but I can't even get that far to show the form.  I'm trying to redirect
through SSL with a basic form action in struts-config.xml to show the form
for the first time with:

org.apache.struts.actions.ForwardAction

and setting the secure property to true.  The complete action is:

<action path="/login-request"
type="org.apache.struts.actions.ForwardAction"
parameter="login">

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

It is simply a blank request, nothing else at that point.

Thanks,
John

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by John Dubchak <jd...@qwest.net>.
On Sunday 02 March 2003 12:23, alexj wrote:
> have you use the ssl form tag in your page ?
> <sslext:form action="/login">

No, but I can't even get that far to show the form.  I'm trying to redirect 
through SSL with a basic form action in struts-config.xml to show the form 
for the first time with:

org.apache.struts.actions.ForwardAction

and setting the secure property to true.  The complete action is:

<action path="/login-request"
			type="org.apache.struts.actions.ForwardAction"
			parameter="login">
		
	<set-property property="secure" value="true"/>
</action>

It is simply a blank request, nothing else at that point.

Thanks,
John

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by alexj <al...@freesurf.ch>.
have you use the ssl form tag in your page ?
<sslext:form action="/login"> 

--

Alexandre Jaquet

----- Original Message ----- 
From: "John Dubchak" <jd...@qwest.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 7:41 PM
Subject: Re: [OT] SSLExt question


On Sunday 02 March 2003 12:04, alexj wrote:
> Hi John,
>
> Have you update your struts-config file and change action mapping
> type like this way :
>
> <action-mappings type="org.apache.struts.config.SecureActionConfig">

Yes, sorry I forgot to mention that.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] SSLExt question

Posted by John Dubchak <jd...@qwest.net>.
On Sunday 02 March 2003 12:04, alexj wrote:
> Hi John,
>
> Have you update your struts-config file and change action mapping
> type like this way :
>
> <action-mappings type="org.apache.struts.config.SecureActionConfig">

Yes, sorry I forgot to mention that.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org