Normally, when Tapestry generates URLs (for links and 
forms) it uses a short form:

/context/servlet?...

This is really a URI, not a URL, since it doesn't 
specify scheme, server or port.

The link components have additional parameters: scheme, 
server and port.  Specifying any of these creates a full 
URL, i.e.:

http://www.yourserver.com[:port]/context/servlet?...

(It omits port if the scheme is "http" and the port is 
the default, 80).

So, if you want a link to go to a particular page, say 
your Login page, but you want it to use HTTPS, you would 
specify it as:

<component id="loginLink" type="Page">
  <static-binding name="scheme">https</static-binding>
  <static-binding name="page">Login</static-binding>
</component>

The trick is to get *back* to http scheme after logging 
in.  Haven't done too much with that, probably requires 
an ugly redirect.

--
[EMAIL PROTECTED]

http://tapestry.sf.net
> my appologies, i am not that familiar with https, but
> when you say "specify a scheme of "https", what
> exactly do you mean? do you mean?
> 
> many thanks in advance,
> 
> saqib
> 
>  --- "Howard M. Lewis Ship" <[EMAIL PROTECTED]> wrote:
> > On the link to the Login page, you can specify a
> > scheme of "https".
> > 
> > ----- Original Message -----
> > From: "saqib rasul" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: "Aejaz Muslim" <[EMAIL PROTECTED]>
> > Sent: Friday, May 17, 2002 2:27 AM
> > Subject: [Tapestry-developer] HTTPS for a particular
> > html page in Tapestry
> > 
> > 
> > > Howdy,
> > >
> > > is there a way to use HTTPS for a particular html
> > page
> > > in Tapestry.
> > >
> > > In our project we wish to use HTTPS for the login
> > page
> > > where a user enters his username and password. So
> > we
> > > have the .html, .jwc, and the .java files for this
> > and
> > > we were wondering how to HTTPS them.
> > >
> > > many thanks,
> > >
> > > Saqib
> > >
> > >
> > >
> > > http://briefcase.yahoo.com.au - Yahoo! Briefcase
> > > - Save your important files online for easy
> > access!
> > >
> > >
> >
> _______________________________________________________________
> > >
> > > Have big pipes? SourceForge.net is looking for
> > download mirrors. We supply
> > > the hardware. You get the recognition. Email Us:
> > [EMAIL PROTECTED]
> > > _______________________________________________
> > > Tapestry-developer mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> > 
> > 
> >
> _______________________________________________________________
> > 
> > Have big pipes? SourceForge.net is looking for
> > download mirrors. We supply
> > the hardware. You get the recognition. Email Us:
> > [EMAIL PROTECTED]
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> 
> http://briefcase.yahoo.com.au - Yahoo! Briefcase
> - Save your important files online for easy access!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to