Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 47517 invoked from network); 4 May 2009 01:47:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 01:47:15 -0000 Received: (qmail 1557 invoked by uid 500); 4 May 2009 01:47:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 1514 invoked by uid 500); 4 May 2009 01:47:12 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 1504 invoked by uid 99); 4 May 2009 01:47:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 01:47:12 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zoran@sparecreative.com designates 150.101.158.37 as permitted sender) Received: from [150.101.158.37] (HELO conads.com) (150.101.158.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 01:47:02 +0000 Received: by conads.com (CommuniGate Pro PIPE 5.2.11) with PIPE id 6250494; Mon, 04 May 2009 11:46:36 +1000 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.1.0-19102005 (2005-09-13) on mail.conads.com Received: from [60.242.126.136] (account webhosting HELO sparecreative.com) by conads.com (CommuniGate Pro SMTP 5.2.11) with ESMTPA id 6250484; Mon, 04 May 2009 11:46:18 +1000 Received: from [10.0.1.10] (account zoran [10.0.1.10] verified) by sparecreative.com (CommuniGate Pro SMTP 5.2.11) with ESMTPA id 2052679; Mon, 04 May 2009 11:46:16 +1000 User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Mon, 04 May 2009 11:46:15 +1000 Subject: Re: determine if iphone user? From: Zoran Avtarovski To: Struts Users Mailing List , Andy Message-ID: Thread-Topic: determine if iphone user? Thread-Index: AcnMWhxCWvtGWDhNEd6cpgANkyympA== In-Reply-To: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3324282376_16144615" X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_30_40,HTML_MESSAGE autolearn=ham version=3.1.0-19102005 --B_3324282376_16144615 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable If iPhone users are significant enough you=B9re better off with an intercepto= r to check all incoming requests. Z. >=20 >=20 > Cool, so is there a way to add a getter/setter in my action class to > automatically pick up the request header, similar to parameters? >=20 >=20 >=20 >> > Date: Fri, 1 May 2009 15:29:03 -0230 >> > Subject: Re: determine if iphone user? >> > From: richardsayre@gmail.com >> > To: user@struts.apache.org >> >=20 >> > I think the HTTP_USER_AGENT header should be similar to: >> >=20 >> > Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ >> > (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 >> >=20 >> > If a request comes from the IPhone browser >> >=20 >> > On Fri, May 1, 2009 at 3:06 PM, Andy wrote: >>> > > >>> > > Hi, is there an easy way to tell in an s2 action if the request is >>> coming from an iphone/mobile device? >>> > > >>> > > Thanks! >>> > > >>> > > _________________________________________________________________ >>> > > Insert movie times and more without leaving Hotmail=AE. >>> > >=20 >>> http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=3DTXT_TAGLM_WL_HM_T= utori >>> al_QuickAdd1_052009 >> >=20 >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> > For additional commands, e-mail: user-help@struts.apache.org >> >=20 >=20 > _________________________________________________________________ > Hotmail=AE has a new way to see what's up with your friends. > http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=3DTXT_TAGLM_WL_HM_Tut= orial > _WhatsNew1_052009 --B_3324282376_16144615--