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]
# 1
where can I get his nokia simulator?
wmacey at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi, You can go to www.nokia.com website to download.Are you using jsp to write your wml code too?If yes, do you have any idea how to do?
caiyun01 at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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

nowire at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
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.
caiyun01 at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
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)
java_newbieII at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hi,Thanx, i had tried. but still there is error saying mime-type not supported. I really can't find any solution to it. any idea?
caiyun01 at 2007-6-29 3:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...