Adam, I use the browser sniffer found here:

http://www.webreference.com/tools/browser/javascript.html

and then have javascript conditionally write the appropriate <link .../> tag.

You can probably use some of the javascript code in a custom tag,
but I'm not sure all the information captured in the javascript code
is available on the server side. I had thought about writing a Filter to 
the same thing as the javascript, but I think I determined it was too much
work when the javascript accomplished the same thing and was already written!

robert

> -----Original Message-----
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 22, 2004 7:36 AM
> To: Tag Libraries Users List
> Subject: browser's user-agent and sending appropriate CSS
> 
> 
> I just found out that my wonderful new CSS design looks complete rubbish 
> in Netscape 4 and in IE5 on Macs, so I'm thinking of checking the user's 
> user-agent request header to find out whether they can handle the style 
> sheet I've written.
> 
> I'm thinking of writing a tag to do this and to output the whole style 
> sheet HTML link tag or not.
> 
> I did check on jakarta to see whether one existed already, but all I 
> found was the request taglibrary, which would have to be combined with 
> some logic tags to achieve what I want.
> 
> Am I right that this doesn't exist?
> 
> Thanks
> Adam
> -- 
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to