I'm trying to write a WML file using JSP but I'm getting a "content could not be encoded by the gateway" error.
(I'm using Tomcat and Nokia Toolkit).
Although I set the content type to "text/vnd.wap.wml", I tried
different encodings, I configured the web.xml file (adding all the appropriate mime-types)and tried several other tips suggested , the gateway insists not accepting the content.
If I ommmit the setContentType("text/vnd.wap.wml")
the wml file is constructed correctly, but there are
4-5 blank lines in the begining. So, when the mini-browser
searches for the <?xml ..... ?> xml thing it doesn't find it
and comes up with an error.
What's wrong with it?