You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ruben Fragoso <ru...@tap.pt> on 2006/05/24 19:29:48 UTC

Check Browsers

Hi

I would like to know if it is possibile, to check the browser using
velocity.

Thank you in advance.

Ruben


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


Re: Check Browsers

Posted by Joe Desbonnet <jd...@gmail.com>.
getHeader("User-Agent") on the HttpServletRequest object will give you
that information. So put either the request object in the velocity
context and call getHeader() on it, or get the agent string first and
put that in the context.

Joe.


On 5/24/06, Ruben Fragoso <ru...@tap.pt> wrote:
> Hi
>
> I would like to know if it is possibile, to check the browser using
> velocity.
>
> Thank you in advance.
>
> Ruben
>
>
> ---------------------------------------------------------------------
> 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


Re: Check Browsers

Posted by Ken A <ka...@pacific.net>.

Ruben Fragoso wrote:
> Hi
> 
> I would like to know if it is possibile, to check the browser using
> velocity.

The velocity of the browser is equal to the square root of (2 times the 
energy divided by the mass).

sorry.... :-P

Ken A


> Thank you in advance.
> 
> Ruben
> 
> 
> ---------------------------------------------------------------------
> 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


RE: Check Browsers

Posted by Ruben Fragoso <ru...@tap.pt>.
Well the problem is that i cannot use Velocity Tools 1.2, i have to stick
with 1.1, or else some things on my site will stop working, so i will use
Joe Desbonnet option. Thank you anyway =).




-----Original Message-----
From: Claude Brisson [mailto:claude@renegat.net] 
Sent: quarta-feira, 24 de Maio de 2006 18:33
To: Velocity Users List
Subject: Re: Check Browsers


There is a BrowserSnifferTool in the toolbox:
http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/v
iew/tools/BrowserSnifferTool.html


  Claude

Le mercredi 24 mai 2006 à 18:29 +0100, Ruben Fragoso a écrit :
> Hi
> 
> I would like to know if it is possibile, to check the browser using 
> velocity.
> 
> Thank you in advance.
> 
> Ruben
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Check Browsers

Posted by Claude Brisson <cl...@renegat.net>.
There is a BrowserSnifferTool in the toolbox:
http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/view/tools/BrowserSnifferTool.html


  Claude

Le mercredi 24 mai 2006 à 18:29 +0100, Ruben Fragoso a écrit :
> Hi
> 
> I would like to know if it is possibile, to check the browser using
> velocity.
> 
> Thank you in advance.
> 
> Ruben
> 
> 
> ---------------------------------------------------------------------
> 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