You can also do this by adding a third-party jar "deli.jar" and using your Profile, Workspace, etc. class to determine the type of mobile phone from which the url is requested. In the location, you can make the page viewed by the Mobile user by making it in xhtml, as shown below. <html:html xhtml="true"
But this will only be supported for mobile devices that have a browser with xhtml support.
Hope this helps you.
source share