You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by akmal Sarhan <ak...@hotmail.com> on 2002/04/03 09:10:27 UTC

SSL

Hello!

I would like to use SSL for "some" of the pages of the project:
if I set one the calls to one page to secure() , The following pages get 
called
via SSL ! any ideas how I can decide which page should use SSL ?!

Thanks in advance
Akmal Sarhan

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Re: SSL

Posted by John McNally <jm...@collab.net>.
in templates $link.setSecure() or $link.setSecure(4433) (if port != 443)
can be used to create an ssl link which will conditionally call
setScheme and setPort if the TR.prop use.ssl=true.  This is useful
instead of $link.setScheme("https").setPort(443) in the event you are
testing without ssl and then moving to an ssl install.  You only have to
switch the property to turn on the ssl links.

there is no corresponding method to get an unsecure link.  And as you
point out, if you are on a secure page $link defaults to giving secure
links.  So you will need to call your links as
$link.setScheme("http").setPort(80).  Not sure you can pass an int
argument within velocity like this and you might want to create two
tools to avoid having to call the methods within the template.  So that
you could have $unsecureLink and $secureLink

Then in the init method of your tools reset call the methods given
above.

john mcnally

akmal Sarhan wrote:
> 
> Hello!
> 
> I would like to use SSL for "some" of the pages of the project:
> if I set one the calls to one page to secure() , The following pages get
> called
> via SSL ! any ideas how I can decide which page should use SSL ?!
> 
> Thanks in advance
> Akmal Sarhan
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> --
> 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>