There's talk about doing something with a "os/browser bean" that would handle the detection, and then you could use a tag to expose that information in the page if needed.
In any event, this functionality is not directly related to the framework resources, and so would be best provided by a generic extension developed somewhere like Jakarta Taglibs. Now that places like Jakarta Taglibs is running full steam, and the standard taglibs are on the horizon, it is unlikely that any new functionality will be added to the Struts logic tags. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ [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