If you have written a servlet before, then you have everything for WAP servlet.
Only thing you have set is the MIME type in your server and ofcourse in your
servlet for output.



 public void service (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
 {

  ..............
     ServletOutputStream outPutStream;

      outPutStream = response.getOutputStream();
      response.setContentType("text/vnd.wap.wml"); /*this is for wml*/
..............

}

 Please download info from  http://updev.phone.com. They have all the info you
need.

Gargi




Zhubin Salehi wrote:

> Dear colleagues,
>
> I don't know if any of you have any information about integrating Java Servlets
> and JSP with Wireless Access Protocol (WAP). I have a few questions:
>
> 1. Does anybody know about a free implementation of a WAP Servlet API?
>
> 2. I might have to write my own WAP Servlet API, I have to subclass
> GenericServlet and a few other class to write WAPServlet, WAPRequest,
> WAPResponse, etc. classes. Do I also have to write a Servlet engine or I can
> use my WAPServlets with existing engines, such as JSWDK, JRun or ServletExec?
>
> 3. If I have to write my own Servlet engine, are there some examples on the
> Internet?
>
> 4. How can I implement a protocol other than HTTP in Servlet API? I mean the
> WAPServlet, WAPRequest, etc.
>
> Thanks,
> Zhubin Salehi
>
> =====
> Are you a lonely Iranian looking for your soulmate?
> Check out "From Persia with Love" club at:
> http://clubs.yahoo.com/clubs/frompersiawithlove
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to