Re: OS / Browser tag?

2001-10-04 Thread Ted Husted

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.
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 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 
>   //do something
> 
> 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



RE: OS / Browser tag?

2001-10-04 Thread Jay Patel

I have not looked at the Present Tag code or the design. However, I think if
it is designed to be flexible, present tag can be used to check the browser
and the os.

One way is to expand the "Scope" values. One more scope value can be added
as "System" where the present tag will "search" for values regarding system.

My $0.02

Jay Patel
[EMAIL PROTECTED]
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 04, 2001 10:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: OS / Browser tag?




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.


  



  


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 
  //do something

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














RE: OS / Browser tag?

2001-10-04 Thread Jay Patel

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.


  



  


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 
  //do something

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









RE: OS / Browser tag?

2001-10-04 Thread Assenza, Chris

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 
  //do something

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










Re: OS / Browser tag?

2001-10-03 Thread dhay



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 
  //do something

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











Re: OS / Browser tag?

2001-10-03 Thread Ted Husted

I've seen it come up in Jakarta Taglibs, but don't know the status.

You might also try JSP Interest 

http://archives.java.sun.com/archives/jsp-interest.html

[EMAIL PROTECTED] wrote:
> 
> 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



OS / Browser tag?

2001-10-03 Thread dhay



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