This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Question about dispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Question about dispatcher" Watch "Question about dispatcher" New topic
Author

Question about dispatcher

Steven Ang
Greenhorn

Joined: Dec 26, 2009
Posts: 1
Good morning.

I am investigating some functionality which i wish to implement using spring framework.
We are developing a RIA Web Application using Spring and Flex.
One of our requirements is the application should redirect the user to its correspond site based on the device they are using.

For example, user input the URL (http://192.168.11.2:8080/SpringTraining/Logon.servlet) on their browser.
If the user is using the computer, then the browser will show the Flex interface logon page to the user.
If the user is using the mobile device(android, iPhone, Windows Mobile), then the browser will show another simple logon page.

Is this requirement doable? If yes, how can I achieve this goal?

Please help me.

Thank you and Good day
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

When you say iPhone and Android, you mean UI's built using their components, and not phone devices using the browser and viewing a web page.

Because I highly recommend against the Website approach. These devices created their apis to give a much richer and better experience to the User. Also on iPhone's FLEX doesn't work, it is Flash and Flash is not allowed on iPhone devices.

So the login screen should be the devices responsibility, meaning using their apis to create a login screen. (Notice I did not say login page)

Now you could always have a different URI request for mobile device browsers. Meaning it is in the URL that determines the view size.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about dispatcher
 
Similar Threads
Flex/Java Mobile Apps
GET does not include JSESSIONID
Spring and Android
How to do both?
Mobile JavaFX and Flash Lite