How WML and JSP can be configured in Tomcat 4.0 just as HTML and JSP

hello all of my friends!
Currently i am working on wap development but i cant find any thing to run my application, i am using Tomcat 4.0 can u plx help me and tell me how can i run Wml in tomcat( what configurations are required?) the application will work just as html-------JSP-Webserver.......ThankYou.

You can work just like you did with html, but replace your content with wml-tags. I usually check for the accept-header in the http-reqest, to separate wap-users from web-useres:
if(request.getHeader("accept").indexOf("text/vnd.wap.wml")>=0){
   response.setContentType("text/vnd.wap.wml");
<xml version=1.0 DOCTYPE .........>
<wml>
   <card ..>
</wml>Also, your webserver must support this mimetype. Tomcat 4 has that, but to be sure, check in server.xml, it holds a long list of mime-associations.
good luck

Similar Messages

Maybe you are looking for

  • PDF headers and footers

    Hi, Trying to write a vocal reader for a PDF document, however, stuff that people would normally skip are being read by the reader (headers, footers, page numbers, footnotes, etc). Anyone knows a way to programmatically recognize the type of the para

  • Error message: Loading odsam failed!

    Pulling my hair out on this one. Have a Tiger 10.4.11 server that I want to share files out via samba to some windows machines. The Mac systems on the network have no problem accessing the shares via afp, but neither the Mac or windows machines can a

  • Pulse width measurement on two to four signals

    Using the shipped PWM measurement solution I am able to make this work as needed on one signal. I would actually like to be able to do this same measurement on up to 4 signals at the same time. First, is this possible, and second, can this be done us

  • Shell Script - Need to Open terminal and Print output?

    Hi All, I have a script to update a git version of a software, but I would like to be able to check the output of the script in a terminal. So in a nut shell, I want when launching the script: - Terminal to Open - All command to be executed in the te

  • Fujifilm S2 and S3 Pro

    I really hope that with the Aperture 1.1 the Fujifilm 2S and 3S Pro will be supported to!!! I still do not understand why Aperture that is a Pro Application doesn't read the Raw files of those two Pro camera that are so loved and used by Studio and W