[jboss-user] [JBoss Portal] - Re: JBoss Portal and mobile devices?
do-not-reply at jboss.com
Tue Sep 16 15:47:43 EDT 2008
Maybe a mod-rewrite + some logic would work:
1. Use mod_rewrite to handle the redirect based on user agent
2. In your layout, you can define content areas which would be enabled or not based on the supported device features, as informed by WURFL.
For instance, you can have a "generic" and "nokia pda" areas defined in your layout descriptor, but you would only include the second one if the device were a "nokia pda"
BTW: Since a theme/layout is just a regular web-app, you can use regular MVC patterns, that is, you can point to a servlet where you'd put your logic and then forward to a specific layout jsp. The same applies to CSS and theme-related resources such as images.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176911#4176911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176911
More information about the jboss-user