you will also have to set the correct content type, which for wml is
response.setContentType("text/vnd.wap.wml");

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Newland
> Sent: Monday, May 08, 2000 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: Possible to serve WML content using JSPs ?
>
>
> Hi,
>
> Is it possible to serve WML content instead of HTML
> content using JSP pages? I'm using Tomcat 3.1
>
> I imagine I could do it using something like:
>
> <% if (device == pc) {
> %>
> <%@ include foo.html %>
> <% } else if (device == mobile) {
> %>
> <%@ include foo.wml %>
> %>
>
> Has anyone tried something like this?
>
> Do you think it is feasible?
>
> Thanks,
>
> Chris Newland
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to