You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2005/02/12 21:46:17 UTC
Struts friendly way to switch between http and https?
Hello:
I have been writing a web app using struts and have to switch
back and forth between http and https (for the members' area
and the rest of the site).
So far, the only way I can figure out how to do this is to
generate the full path to an action (example:
https://dev.jammconsulting.com/pricetracker/register.do)
and pass that to the html:link as an href attribute.
When I want to switch back, I generate the full path
to the http mode page (example:
http://dev.pricetracker.jammconsulting.com/pricetracker/index.jsp)
and pass that to the html:link as an href attribute.
Since I am also using name-based virtual hosting, the
host name in the url is different for http and https mode.
Is there a more struts-friendly way to do this?
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
AW: Struts friendly way to switch between http and https?
Posted by Leon Rosenberg <st...@anotheria.net>.
The friendliest way is to let some piece of environment do the ssl,
i.e. the loadbalancer or an apache in front of your servlet container.
Regards
leon
> -----Ursprüngliche Nachricht-----
> Von: Joe Germuska [mailto:Joe@Germuska.com]
> Gesendet: Samstag, 12. Februar 2005 23:39
> An: Neil Aggarwal; 'Struts Users Mailing List'
> Betreff: Re: Struts friendly way to switch between http and https?
>
> At 2:46 PM -0600 2/12/05, Neil Aggarwal wrote:
> >Hello:
> >
> >I have been writing a web app using struts and have to
> switch back and
> >forth between http and https (for the members' area and the
> rest of the
> >site).
> ...
> >Is there a more struts-friendly way to do this?
>
> See http://sslext.sourceforge.net/
>
> Joe
> --
> Joe Germuska
> Joe@Germuska.com
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction" -The Ex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts friendly way to switch between http and https?
Posted by Joe Germuska <Jo...@Germuska.com>.
At 2:46 PM -0600 2/12/05, Neil Aggarwal wrote:
>Hello:
>
>I have been writing a web app using struts and have to switch
>back and forth between http and https (for the members' area
>and the rest of the site).
...
>Is there a more struts-friendly way to do this?
See http://sslext.sourceforge.net/
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org