Its possible, but not trivial. It will inevitably result in the use of some kind of MVC setup. I would guess the quickest way to go would be to abstract the business login into taglibs (e.g. most of the Java code in the jsp pages). Then code 2 different jsp files - one for WML, and one for HTML, both using the same taglib, just displaying the information in a different way. You could then get a servlet to handle the request and direct the user to the correct .jsp file.
The O'Reilly Java Server Pages book has a good chapter on taglibs & MVC stuff. It also touches on the use of JSP and XML specifically for WML, although I preferer the use of taglibs to their proposed method.
 
sam
----- Original Message -----
From: Paul Yoon
Sent: Wednesday, April 18, 2001 8:13 PM
Subject: WML and JSP

Hello,
 
I am an user of Tomcat.
I would like to make a few page for mobile user.
Is it possible that HTTP users  and WAP users  can access same URL and get their own services?
If it is, how it can be possible? How tomcat server know the difference?
Thank you in advance.
 
Paul

Reply via email to