Iphone web site

Hi there
I am looking for any information how to redirect a user using an Iphone..
I tried using this..
http://coldjava.hypermart.net/servlets/agentflt.htm but I cannot figure out how to use it..
I tried
<script type="text/javascript">
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
document.location = "http://mobile.theultimatecarsite.com/";
</script>
but it's not working for me..
I know there is a servlet filter out there because http://www.dominos.com/ is a jsp site with a redirect for iphone..
Please help

does it go in a servlet
package com.domain;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
* Servlet implementation class FilterServlet
public class FilterServlet extends HttpServlet {
     private static final long serialVersionUID = 1L;
* @see HttpServlet#HttpServlet()
public FilterServlet() {
super();
if("STRING_YOU_GET_BY_CHEKING_User-Agent".equals(request.getHeader("User-Agent"))){
response.sendRedirect("/iPhone.jsp");
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // TODO Auto-generated method stub
     * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
     protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // TODO Auto-generated method stub
}

Similar Messages

  • Creating iPod touch/iPhone web sites with iWeb

    I have a web site created with iWeb, i was woundering if it's possible to create a web site specifically for the iPod touch/iPhone platform . Or is there some tamplates in iWeb for creating iPhone/iPod touch web sites ?

    Here's a site I created with the iPad in mind.
    http://ipad.dailynews.webege.com/
    I used a template from iWork's Pages.
    Then I made a page setup for the width and height of the iPad screen : 1024x768 or rather 768x1024.
    The paper size = 28,40 x 34,50 cm. The papersize is slightly larger because I had a background in mind but changed that later.
    The display percentage is 100% so it will look the same as in iWeb.
    I copy/pasted the objects from Pages to iWeb.
    Then used the iPad simulator to view it. Hopefully it's the same with a real iPad.
    See if you accomplish the same for the iPhone/iPod touch.

  • My iphone 4 cannot open the flash based web sites. Is there no tie up with Flash???

    my iphone 4 cannot open the flash based web sites. Is there no tie up with Flash???

    Actually, read this. http://www.apple.com/hotnews/thoughts-on-flash/

  • I got an iphone 4 as a gift. started using it. the account number i input is same as my existing i phone. I havent done any registration of this new phone in the apple web site.- Do i have to register the I phone? whatsapp how to download?

    i got an iphone 4 as a gift. started using it. the account number i input is same as my existing i phone. I havent done any registration of this new phone in the apple web site.- Do i have to register the I phone? whatsapp how to download?

    madhu_nainan wrote:
    Do i have to register the I phone?
    No, but it's recommended you setup a support profile:
    https://supportprofile.apple.com/
    whatsapp how to download?
    Go to the App store & purchase it.

  • Hi i am working on my web site and it appears to have blocked the ip from my server i can't open my web sites and i cant open the server home page but can do this on my iPhone i have trend micro running on 2 other desk tops all from the same router please

    Hi i am working on my web site and it appears to have blocked the ip from my server i can't open my web sites and i cant open the server home page but can do this on my iPhone i have trend micro running on 2 other desk tops all from the same router please help maybe its a firewall? Cheers Dave

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • My iphone is locked how i can know with which id i can unlock it .tell me any web site where i put some information and that tell me with which id i can unlock it?

    my iphone is locked how i can know with which id i can unlock it .tell me any web site where i put some information and that tell me with which id i can unlock it?

    http://support.apple.com/kb/PH13695

  • Can't log into web sites on iPhone 4s.

    I recently upgraded from an iPhone 3Gs to an iPhone 4s running iOS 5.0.1.  I've recently noticed that on the iPhone, I can't log onto any web site that requires my ID and password.  Basically the information is not recognized by the web site.  I had no problem logging onto these same sites on the old 3Gs. I've checked that the IDs and passwords are being entered correctly.
    If I use my iPad of my MacBook Pro, I can log onto theses same web sites without a problem.  I've tried resetting the iPhone but that has not fixed the problem.
    The log in problem only happens on the iPhone.
    Web sites that don't require an ID and password seem to be working fine on the iPhone.
    Has anyone else run across this issue?  Any ideas how to correct it?
    Regards,
    David

    Many web sites requiring username/password use cookies during authentication.  Be sure Settings | Safari | Accept Cookies is set to something other than Never.  I recommend From visited.  I think iOS 5 defaults this setting to Never, a difference from prior iOS versions.

  • Good iPhone optimized Web Sites?

    All,
    I would like to ask what good iPhone optimized Web Sites, people use. I have created my own web page would would like to add links to cool sites.
    Check out my new iPhone optimized web site At:
    ihttp://homepage.mac.com/mgural/iPhone.html
    It offers a quick web search, with the ability to search Google, Yahoo, Wikipedia, Digg, Flickr + 12 other Great searches, all from one search form. Link buttons to many great iPhone optimized sites. The whole site is orientation sensitive, and rotating you iPhone to the left and right, will change the page, and may also reveal some hidden surprises. Have fun, and let me know what you think.

    Optimized websites are a far cry from prior "WAP" or "mobile" sites. They're generally text only and very limited in what they can display. iPhone optimized sites are simply sites optimized for a touch interface (interface widgets of a certain size and other tips listed here. http://developer.apple.com/iphone/devcenter/designingcontent.html )
    They are still able to use the full power of Safari to create really sophisticated and graphic powered interfaces. In some cases, the site can also be designed so as to be an easier download over EDGE. As long as the site author allows me to choose a full version of their site by choice (when I have WiFi), then I've no problem with optimized sites.

  • How do I place a link to a web site on my screen.  I have done this on my iPhone, but don't remember how I did it.  Now I want to do the same on my iPad.  Thanks

    How do I place a link to a web site on my iPad screen?  I have done this on my iPhone, but I don't remember how I did it.  Getting old I guess.  Thanks.

    In Safari (on the page that you want the link for) press the icon of the box with the arrow coming out of it,select the 'Add To Home Screen' option, and then chose what you want to call it (as you can't change the name after it's saved).

  • Why can't I view a secure web site (basic https) on my iPhone?

    I was wondering why my iPhone is unable to connect (at all) to https://c1.cmpro.net? When I attempt to go to this address (this is a server at work I'd like to be able to use via my iPhone), I get the following message: "Safari can't open the page because it could not establish a secure connection to the server."
    I'm fairly certain that the https config on this server hasn't been set to cause it to exclude iPhones, or that it is in fact doing anything out-of-the-ordinary so far as https configurations are concerned for a web site.
    Any ideas, feedback would be greatly appreciated. I'd love to be able to connect to this site via my iPhone.
    Thanks.

    I think I might have just answered my own question. When accessing the site in question via Safari on my iMac just now, I was warned that the security certificate could not be verified, and asked if I wanted to continue. I'm presuming the same thing is happening on the iPhone, only I'm not getting chance to say that I'd like to continue. Instead, it just stops and basically says, "I can't verify the security of this site, therefore I can't connect to it securely."
    I'll look into the certificate issue for that server and see what can be done to get it resolved.
    I wish that the iPhone had a way to register "trusted sites" in order to circumvent this type of things (I happen to know I can trust this particular site.) It would also be very helpful to be able to install PKI certificates for sites that require those. Oh well, maybe in a future version of the iPhone Mac OS ...
    Thanks for your answers.

  • Why my Flsh web site can't be seen in an Iphone?

    Hi,
    I developed a web site in Flash CS3 and published. I tried it
    in different browsers and it looks good. But, when I tried to look
    at it in an Iphone, it looked like the browser was trying to open
    it because it showed the background of the web-site but nothing
    else. What do I need to do?
    Thanks,

    Looks like it will be good to go for Android
    http://en.wordpress.com/tag/flash-android/
    I too was disappointed about the iPhone news, as to
    alternatives - I am not sure this is the place to ask ;-)
    Simon
    Expats in Brussels

  • HT4528 Cannot send E-Mails from my iphone 5.  I have my own web site

    I have a web site through Alamode.  For some reason my iphone cannot send out e-mails.  I have no problem receiving them.  Anybody have any suggestions. 

    Hi there Fredbeles,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    -Griff W.

  • I am using my iPhone 4s personal hotspot as the internet router for my notebook. However, I am gtting the WEB SITE IS BLOCKED BY NETGEAR FIREWALL. I've deleted some other wifi connections I had before, had system restores, clear cahes and cookie. FAILED.

    I am using my iPhone 4s personal hotspot as the internet router for my notebook. However, I am gtting the WEB SITE IS BLOCKED BY NETGEAR FIREWALL. I've deleted some other wifi connections I had before, had system restores, clear caches and cookie. Still, I failed. Whenever I tried to access FACEBOOK, it's still blocked so I still had to use https:// or tl-gp. please help asap.

    Well, aren't you all that and a bag of chips!!!!
    Oh what a relief!  What a RELIEF!  
    That just cleaned up my life.  And Cranky Boy is actually smiling!!!
    Houston, we've got dots AND BARS!!!
    P.S.  All my firware and software are always current.  If I spent as much time looking for a reset button as I spend checking for software updates, I mighta not needed to work at this!!!!
    P.P.S.  Airport Utility shows Cranky Boy's iPad as the Airport Express' Wireless Client!!!   Who knew?
    Thank you so much, m'Lord.  I am in your debt.  What would you have me do?
    Patti in Tucson AZ

  • Safari on iPhone 4 doesn't render web sites correctly, white rectangle hides most of web site view

    I started having a problem with Safari on the second day of using my iPhone.
    Since today, Safari will not render any web site correctly anymore, there is always a white rectangle hiding most of the web site view, web site browsing is now impossible, only a small area on the top and right remains visible.
    How can this be fixed ?

    Well, try restarting your phone, if that doesn't help, restore it with iTunes.

  • Best iphone IMEI check web site ?

    i want to check my phone carrier, can anyone tell me REAL IMEI check web site ? Thanks.

    Call Apple is one solution but I think you can check on this site: https://imeidata.net/iphone/unlock-check
    This site given correct and full of information.
    For example my phone:
    iPhone 6 Plus
    16GB Space Gray
    IMEI:3543780677XXXX
    Original Serial:F2LNQV02XXX
    Model Number:A1524
    Network:Global
    Activated:Yes
    Contract Status:Unknown
    AppleCare Protection:No
    Telephone Technical Support:March 29, 2015
    Repairs & Service Coverage:December 28, 2015
    Purchase Country:United Kingdom
    Purchase Date:December 29, 2014
    Carrier:UK O2 Tesco.
    Factory Simlock:Locked
    Carrier Last Update:2015-02-05 09:48:39
    Find My iPhone:OFF
    SIM Lock:Locked
    Blacklist (Lost/Stolen):Free Check Now
    Model Check:Free Check Now

Maybe you are looking for