You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Wang <er...@cls.uob.com.sg> on 2001/04/16 03:48:21 UTC
switching between SSL and non-SSL
Hi,
Has anyone done switching between SSL and non-SSL using Struts?
My login page is using SSL. After successful logins, it suppose to route to a
page that is non-SSL.
Is there any example available for reference?
Thanks in advance.
Eric
Re: switching between SSL and non-SSL
Posted by Eric Wang <er...@cls.uob.com.sg>.
Hi Ted,
I did a redirect instead of forward in the perform method of Action class.
String url = aMapping.findForward("somepath").getPath();
ActionForward fwd = new ActionForward( url, true );
return fwd;
Regards
Eric
Ted Husted wrote:
> Any luck with this Eric?
>
> I'd like to do the same thing, a la auctions.yahoo.com
>
> Everything works if I hardcode the references, but then you end up stuck
> in SSL.
>
> I started a SSL FAQ, and would like to include how to do this too.
>
> <
>
> http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayOneTopic/action/SetAll/project_id/2/faq_id/36/topic_id/213
>
> >
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
> Eric Wang wrote:
> >
> > Hi,
> >
> > Has anyone done switching between SSL and non-SSL using Struts?
> >
> > My login page is using SSL. After successful logins, it suppose to route to a
> > page that is non-SSL.
> >
> > Is there any example available for reference?
> >
> > Thanks in advance.
> > Eric
Re: switching between SSL and non-SSL
Posted by Ted Husted <hu...@apache.org>.
Any luck with this Eric?
I'd like to do the same thing, a la auctions.yahoo.com
Everything works if I hardcode the references, but then you end up stuck
in SSL.
I started a SSL FAQ, and would like to include how to do this too.
<
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayOneTopic/action/SetAll/project_id/2/faq_id/36/topic_id/213
>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Eric Wang wrote:
>
> Hi,
>
> Has anyone done switching between SSL and non-SSL using Struts?
>
> My login page is using SSL. After successful logins, it suppose to route to a
> page that is non-SSL.
>
> Is there any example available for reference?
>
> Thanks in advance.
> Eric