Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Detecting browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Detecting browser" Watch "Detecting browser" New topic
Author

Detecting browser

Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
I am using the following struts tags to detect the browser and surprisingly IE is not able to show up as MSIE.able to detect in Netscape as Netscape7.2 and Windows NT.

Can any one help me ?


<logic resent header="user-agent">
<logic:match header="user-agent" value="Netscape/7.2">
Netscape7.2
</logic:match>
<logic:match header="user-agent" value="Windows NT 5.1">
Windown NT 5.1
</logic:match>
<logic:match header="user-agent" value="MSIE 6.0">
MSIE
</logic:match>
</logic resent>

Thanks in advance


Srini
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Detecting browser
 
Similar Threads
EL doubt
Why does the User-Agent=Mozilla/4.0 when I use MSIE 6.0?
Null Pointer Exception in jsp
Using IE but getting Value: Mozilla/4.0 for user-agent
Client browser type and platform detection thru Servlets