You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Greg Hess <gh...@wrappedapps.com> on 2002/02/15 20:34:39 UTC

Bug with SSL

Hi All,

I am using the classes provide by http://struts.ditlinger.com/ to allow for
switching between Http and Https calls in my Struts application. I have
installed SSL and is working fine under a test certificate. I am using the
the extended <ssl:form>
, <ssl:linktags> and the secure property in my Action definitions. I would
like my main logonForm to be submitted using SSL and after the username and
password are received on the server using SSL to switch back to http. What
happens is that the secure data posted by logon.jsp is visible in the
location
http://localhost/emailssl-struts/mainPage.do?password=hess&submit=Submit&use
rname=ghess. I have tried having the LogonAction setRedirect(true) on the
ActionForward returned but with no success. Unfortunately this is making my
secure data visible, how can I fix this bug.

	<!-- Direct main page requests -->
	<action
		path="/mainPage"
		type="org.apache.struts.actions.ForwardAction"
		parameter="/maintemplate.jsp">
		<set-property property="secure" value="false"/>
    	</action>

	<!-- Process a user logon -->
    	<action
    		path="/logon"
               	type="com.wrappedapps.email.LogonAction"
               	name="logonForm"
              	scope="request"
              	validate="true"
              	input="/logon.jsp">
              	<set-property property="secure" value="true"/>
              	<forward name="success" path="/mainPage.do" />
    	</action>

Thanks,
Greg


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bug with SSL

Posted by Max Cooper <ma...@maxcooper.com>.
Greg,

Please try setting the redirect attribute of your success action forward to
true in the struts-config.xml file, like so:

<forward name="success" path="/mainPage.do" redirect="true" />

I'm going to try out this scenario and report back with any additional tips
that I can think of.

-Max

----- Original Message -----
From: "Greg Hess" <gh...@wrappedapps.com>
To: "Struts Mail List" <st...@jakarta.apache.org>
Sent: Friday, February 15, 2002 11:34 AM
Subject: Bug with SSL


> Hi All,
>
> I am using the classes provide by http://struts.ditlinger.com/ to allow
for
> switching between Http and Https calls in my Struts application. I have
> installed SSL and is working fine under a test certificate. I am using the
> the extended <ssl:form>
> , <ssl:linktags> and the secure property in my Action definitions. I would
> like my main logonForm to be submitted using SSL and after the username
and
> password are received on the server using SSL to switch back to http. What
> happens is that the secure data posted by logon.jsp is visible in the
> location
>
http://localhost/emailssl-struts/mainPage.do?password=hess&submit=Submit&use
> rname=ghess. I have tried having the LogonAction setRedirect(true) on the
> ActionForward returned but with no success. Unfortunately this is making
my
> secure data visible, how can I fix this bug.
>
> <!-- Direct main page requests -->
> <action
> path="/mainPage"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/maintemplate.jsp">
> <set-property property="secure" value="false"/>
>     </action>
>
> <!-- Process a user logon -->
>     <action
>     path="/logon"
>                type="com.wrappedapps.email.LogonAction"
>                name="logonForm"
>               scope="request"
>               validate="true"
>               input="/logon.jsp">
>               <set-property property="secure" value="true"/>
>               <forward name="success" path="/mainPage.do" />
>     </action>
>
> Thanks,
> Greg
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>