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?
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.