Whoops, missed this one.

We've recently discussed this over on the taglib and commons mail lists.

The end resolution was that an OS/Browser checker was better fitted as a
Bean that sits inside JSPTL than a custom tag library. So the next step is
to work on a Bean that can analyse a request.

It fits quite well with another itch I have, for a generic log reporting
mechanism in Java, so I will be hoping to integrate and develop it in
there.

Bringing all these browser detection ideas into a common place seems the
obvious thing to do, I'll forward a post I made to commons/taglib
suggesting a project to improve on log-creation and log-reporting,
browser-detection is an integral part of that.

Sorry to butt in,

Bay

On Thu, 4 Oct 2001 [EMAIL PROTECTED] wrote:

> 
> 
> Hi Jay,
> 
> Yeah, coming down to having two tags.  Would be great to add them to
> logic:present tag, but not sure it would work - seems to me there is a
> fundamental difference in that logic:present is checking for values in the
> request.
> 
> What do others think?
> 
> Dave
> 
> PS  Cross posting to dev list too.
> 
> 
> 
> 
> Jay Patel <[EMAIL PROTECTED]> on 10/04/2001 11:11:34
> AM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   "'[EMAIL PROTECTED]'"
>       <[EMAIL PROTECTED]>
> cc:    (bcc: David Hay/Lex/Lexmark)
> Subject:  RE: OS / Browser tag?
> 
> 
> 
> I like the idea for the OS and Browser check. However I would suggest that
> the checks be made separately and not within one tag. How about if we can
> modify the logic:present to have two more parameters? ( that can also go for
> notPresent ).
> 
> E.g.
> 
> <logic:present os="unix">
>   <!-- the code -->
> </logic:present>
> 
> <logic:present browser="Netscape" version="4.0">
>   <!-- the code -->
> </logic:present>
> 
> Above approach will result in less of a learning curve and fewer tags.
> 
> My $0.02
> 
> Jay Patel
> [EMAIL PROTECTED]
> 
> 
> 
> -----Original Message-----
> From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 04, 2001 8:13 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: OS / Browser tag?
> 
> 
> I have something written that will do the server-side browser detection,
> etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
> script that I stumbled on a while back. :) It'd be a great idea for a tag
> though - go for it! :)
> 
> Chris
> 
> Christopher Assenza
> Phone:    412.201.6026
> Fax:     412.201.6060
> Email:    [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM http://www.accessdc.com/
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: OS / Browser tag?
> 
> 
> 
> 
> Sorry, maybe that wasn't clear!
> 
> I am basically looking for an IF tag which utilises the OS and/or the
> browser that the client is running on.
> 
> eg IF Unix and Netscape THEN....
> would be <logic:IF_os_browser os="unix" browser="Netscape">
>           //do something
>         </logic:IF_os_browser>
> and the tag would automatically check for current client os and browser.
> 
> Hope that's clearer!
> 
> Cheers,
> 
> Dave
> 
> 
> 
> 
> 
> "David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
> 04:17:59 PM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   [EMAIL PROTECTED]
> cc:    (bcc: David Hay/Lex/Lexmark)
> Subject:  OS / Browser tag?
> 
> 
> 
> 
> 
> Hi everyone.
> 
> Just wondering if anyone has written a tag to do something specific to OS or
> Browser?
> 
> I'm probably going to write my own if no-one else has already done it!
> 
> Cheers,
> 
> Dave
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

Reply via email to