Can you not simply get the user agent header in tomcat?  Why bother with
browser match rules in Apache at all?

Tim

-----Original Message-----
From: Rajeev Jha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 6:53 AM
To: users@tomcat.apache.org
Subject: Best practices : browser checks by tomcat container

Hi
Right now our application supports only new set of browsers (firefox and 
IE 6+) so we need to display a custom Unsupported Browser page when user 
hits a servlet via apache front-end URL . The way we are planning to do 
this is

1) set environment variables in apache based on browser match rules
2) pass those variables to tomcat request using JkEnvVar
3) extract environment variables value inside servlet and then decide ..

I would like to know what are the best practices people are following 
for this kind of requirement. should we do it in apache only and dont 
bother tomcat at all ? is checking every hit for user-agent a 
performance drag ? should we set a cookie when first hit is made ?

I would like to know your views.

Thanks

Rajeev.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to