On Tue, 4 Nov 2003, Stefan Moghadam wrote: >Does anyone have ideas on how to detect WML or HTML browsers from the same >site and redirect the user to the same directory using JSP ? I would greatly >appreciate the help. Thanks.
Is what you want to know how to distinguish between HTML and WML requests? Looking at a working .htaccess file of one of our ancient WAP sites ... RewriteCond %{HTTP_ACCEPT} text\/vnd\.wap\.wml RewriteRule (.*)/$ $1/index.wml [T=text/vnc.wap.wml,L] ... something like ... if (request->getHeader("Accept").matches(".*text\\/vnd\\.wap\\.wml.*")) { do_wml(); } else { do_html(); } ... should work. kr Christoph Lechleitner ------------------------------------------------------------------------ IBCL - IT Bureau Dipl.-Ing. C. Lechleitner Defreggerstr. 24, A-6020 Innsbruck, Austria, Europe http://www.ibcl.net/ Tel.: +43 512 390717, Fax: +43 512 390787, Mobile: +43 699 12353479 ------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]