> Is there any way to integrate WMl with servlets. I want to create a
> dynamic WML thro servlets is it possible any URL guidance in this regard
> will be highly appreciated.
Yup, just make sure to make the reponse MIME type "text/vnd.wap.wml"
Here's a quick e.g.:
public void service(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType("text/vnd.wap.wml");
PrintWriter out = new PrintWriter(response.getOutputStream());
out.println("<?xml version=\"1.0\"?>");
out.println("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML
1.1//EN\"\"http://www.wapforum.org/DTD/wml_1.1.xml\">");out.println("<wml>")
;
out.println("<card id=\"card1\">");
out.println("<p>WAP stuff here</p>");
out.println("</card>");
out.println("</wml>");
out.close();
}
___________________________________________________________________________
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