Determine the type of browser

Hello all,

I am not sure if I am posting this question in the right forum,

anyway I am working on a JSF project. I have some tags in my jsp pages

for e.g.

<h:inputText size="20" value="#{authentication.userName}" />

<h:inputSecret size="20" value="#{authentication.password}" />

the problem is - the two JSF components above are displayed differently in deifferent browsers. In firefox and IE7, they are displayed without any problem,

however in IE6 the inputSecret looks smaller in size than inputText.

So how do I need some way to identify the kind of browser and its version details and based on which i will make the appropriate changes in my css file.

is there some simple method to find the browser type in jsp?

[791 byte] By [angeshwara] at [2007-10-3 11:31:54]
# 1
> is there some simple method to find the browser type in jsp?The only thing you can do is to parse/guess the User-Agent header field sent by the browser (use request.getHeader("User-Agent") to access this value).
quittea at 2007-7-15 13:58:38 > top of Java-index,Java Essentials,Java Programming...