Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about dispatcher

 
Steven Ang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic