wml in jsp
I written my wml in jsp. However, when i use nokia simulator to test. It give me a error saying mime type not supported. I had written:
<%
response.setcontentType="text/vnd.wap.wml";
%>
Do anyone know why?
Please help me. I need to rush my project.
Thanx you.
[316 byte] By [
caiyun01] at [2007-9-26 1:56:01]

I wrote my wml pages a while ago, but I remember that I set the mime type with page directive and it needed to be before <?xml...>-tag.
Like this:
<%@ page contentType = "text/vnd.wap.wml" %><?xml version="1.0" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
...
Hope this helps,
KK
Hi, I have tried, but still when i use my nokia simulator to run. error: Mime-type not supported. Any idea?Also, i need to specify the mime-type in the server? I using tomcat. How should i specify if it need?Thank in advance.
yes. you have to add the mime-types of wml, wmlc, wmbp etc. in the web.xml. (read the last section of nokia's development guide, that will teach you how)