struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chengas123 <benjamin.j.mcc...@gmail.com>
Subject [S2] Accessing HTTP Header
Date Tue, 12 Jun 2007 14:23:37 GMT

Hi,
How do I access the request variable or HTTP request headers?  I want to do
something like the following in my action:
request.getHeader("Accept").toLowerCase().indexOf("vnd.wap")
I am trying to detect whether the user is using a wireless device such as a
Blackberry in my action to determine which .jsp to send the user to in order
to display the output in a nicely formatted manner.

Thanks,
Ben
http://benmccann.com benmccann.com 

-- 
View this message in context: http://www.nabble.com/-S2--Accessing-HTTP-Header-tf3907721.html#a11079394
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message