This content has been marked as final.
Show 3 replies
-
1. Re: mobile and web application needs diferent login pages
gaborj Apr 17, 2010 4:24 AM (in response to suayipozmen)This is nothing to do with Seam, you can use search engines to find related information...
To detect your client (and anyways) you should check HTTP Headers, namely
- User Agent: To identify a User Agent and Client Device
- Accept Header: Find the MIME Media Types that will be Accepted by a User Agent
How you perform this check can vary depending on your other needs, you can use e.g. a servlet filter...
-
2. Re: mobile and web application needs diferent login pages
suayipozmen Apr 17, 2010 10:04 AM (in response to suayipozmen)thank for reply. yes i can detect client access bt how to redirect
it to correct page if it is mobile.
where to inject my filter which redirects page before pages.xml handles. -
3. Re: mobile and web application needs diferent login pages
cosmo Apr 23, 2010 4:03 PM (in response to suayipozmen)Check out the wiki example that comes with Seam. I have not studied that example yet but I can see that file urlrewrite.xml may have the capability to redirect the user according to the user agent.