Connecting Tech Pros Worldwide Forums | Help | Site Map

Server side script for mobile detection?

Newbie
 
Join Date: Jun 2009
Posts: 1
#1: Jun 10 '09
Can anyone give a JSP equivalent of the Request.ServerVariable example above?

I am on an OpenCMS 6 system and trying to detect for Windows Mobile and redirect accordingly.

I suppose I could just develop and HTML page and a separate CSS file with a media="handheld" attribute and use JavaScript to dynamically serve the CSS file but I'm reading a lot of forums that say JavaScript is a dicey proposition at best on many handheld clients.

Newbie
 
Join Date: Jul 2009
Posts: 2
#2: Aug 16 '09

re: Server side script for mobile detection?


Hi,
I have published the last version of "Apache Mobile Filter", this open source project has in the first 8 months, more than 1100 downloads from sourceforge and I suppose the same from CPAN.

The Apache Mobile Filter allows you to access WURFL from any programming language, not just Java and php that is traditionally used for dynamic mobile web sites.

The module detects the mobile device and passes the WURFL capabilities on to the other web application as environment variables. It can also be used to resize images on the fly to adapt to the screen size of the mobile device.

Try it and let me know your opinion.

For more info: http://www.idelfuschini.it/it/apache...ilter-v2x.html

I have made two test pages:

PC Test Page: http://apachemobilefilter.nogoogle.it/php_test.php

Mobile Test Page: http://apachemobilefilter.nogoogle.it
Reply