Jason Hunter (www.servlets.com he's the guy that wrote the orielly servlets
books) has one available, and I believe there's a free version and a version
which you can purchase that has more bells and whistles.


>  -----Original Message-----
> From:         [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 20, 2001 10:34 AM
> To:   '[EMAIL PROTECTED]'
> Subject:      RE: Browser detection taglib
> 
> 
> Nice - like this lots - but I think there's already a browser bean
> available - anyone know where?
> 
> 
> 
> 
>       -----Original Message-----
>       From:   Shawn Bayern [SMTP:[EMAIL PROTECTED]]
>       Sent:   Thursday, September 20, 2001 9:25 AM
>       To:     '[EMAIL PROTECTED]'
>       Subject:        RE: Browser detection taglib
> 
>       On Thu, 20 Sep 2001, Christian Royle wrote:
> 
>       > A case statement is undoubtedly the best/simplest logic for this
>       > implementation.
>       > 
>       > IMHO, if you are going to address the browser 'type', then you
> might
>       > consider extending the taglib to include at least an appropriate
>       > sub-set of other client-side properties.
> 
>       Quick thought:
> 
>       Perhaps this logic could be integrated with with JSPTL's currently
> planned
>       mechanisms for conditional logic?  In other words, instead of
> introducing
>       a tag that supports syntax like
> 
>               <useragent:if browser="netscape" version="5">
> 
>       a tag could expose a data structure that describes the browser.
> Then,
>       later in the page, JSPTL's <if> and <choose>/<when>/<otherwise> tags
> could
>       traverse this data structure.  E.g.,
> 
>               <useragent var="browser"/>
> 
>               ...
> 
>               <jx:choose>
>                  <jx:when test='$browser.type="netscape"'> ... </jx:when>
>               </jx:choose>
> 
>       Shawn
> 

Reply via email to