Hi Sophie

Please see:

ftp://ftp.maz-hh.de/outgoing/fw/jswdkmobi.zip



> 3. I read the other mail on this subject but it's nor really clear :
>     Should I write  response.contentType("text/vnd.wap.wml") or
>                            <%@ page contentType="text/vnd.wap.wml"%> is
> sufficient?

I think this is better:

<?xml version="1.0"?>
<%@ page language="java" import="java.util.*" %>
<%
{
    // Initialize response header
    Date now = new Date();
    response.setContentType("text/vnd.wap.wml");
    response.setDateHeader("Expires", 0); // expiration date in the past
    response.setDateHeader("Last-Modified", now.getTime()); // current date
    response.setHeader("Cache-Control", "no-cache, must-revalidate");//HTTP/1.1
    response.setHeader("Pragma", "no-cache"); // HTTP/1.0
}
%>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
..........
</wml>

Marin.

>
>
> ===========================================================================
> 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