velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Getting the protocol of actual page
Date Tue, 11 Apr 2006 21:47:49 GMT
Then you're probably using the VelocityViewServlet.  And actually, you
can just shorten that to

$request.scheme

On 4/11/06, Gustavo Straube Pereira <gustavo.pereira@nobla.com.br> wrote:
> Hi Will,
>
> I'm not sure about wich servlet I'm using, but I think that's
> VelocityViewServlet.
>
> $request.getScheme() works!
>
> Thank you very much!
>
> Gus
>
>
> Will Glass-Husain wrote:
> > Hi Gustavo,
> >
> > It depends what is in the context.  If you have the HTTPRequest object
> > in the context with the name "request", then $request.getScheme() is
> > exactly right.
> >
> > Are you using VelocityViewServlet, VelocityServilet or some other servlet?
> >
> > WILL
> >
> > On 4/11/06, GB Developer <gb1071nx@globallyboundless.com> wrote:
> >
> >> $request.getScheme() ?
> >>
> >>
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Gustavo Straube Pereira [mailto:gustavo.pereira@nobla.com.br]
> >>> Sent: Tuesday, April 11, 2006 1:02 PM
> >>> To: Velocity Users List
> >>> Subject: Getting the protocol of actual page
> >>>
> >>>
> >>> Hi,
> >>>
> >>> I want to know if actual page is secure or insecure, then how
> >>> can I get
> >>> the protocol (http or https) of actual page?
> >>>
> >>> Thanks!
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> > --
> > Forio Business Simulations
> >
> > Will Glass-Husain
> > wglass@forio.com
> > www.forio.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message