This is a normal error to do in XML generation. The <?xml version="1.0"?>
has to be the very first thing shown to the browser reading the file. The
spec says no whitespaces are alowed before this very tag...
 
So in your case you just have to remove some whitespaces in front of your
tag. See under:
<%@ page contentType ="text/vnd.wap.wml" session="true" %><?xml
version="1.0"?>
 
If you do it like this i would belive youre going off with your first vml
page :)
 
You allso have to add you text inside the card inside a paragraph aswell:
<p> hi all </p>
 
If you use jsp pages to show all your cards like i do you dont have to
configure the mime types at all....Thats what the content type is all about.
 
PS. Wml browsers in phones dont handle cookies do add url tracking and
dissable cookie tracking if you want sessions to work in all browsers. (to
be sure to make this work post or get a variable called j_session? (dont
remember) with the session id..
 
Good luck....Its easy as soon as you get track of those stupid strange
restrictions thats not to well documented :)
 
Klaus Myrseth

-----Opprinnelig melding-----
Fra: Fiorini Simone [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
]
Sendt: 14. februar 2000 15:23
Til: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Kopi: Klaus Myrseth
Emne: jsp generating wml



Hi all Orion users, 
I have a jsp but I cannot generate a simple wml page: 

<%@ page contentType ="text/vnd.wap.wml" session="true" %> 

<?xml version="1.0"?> 
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "
http://www.wapforum.org/DTD/wml_1.1.xml
<http://www.wapforum.org/DTD/wml_1.1.xml> "> 

<WML> 
<CARD NAME="Card_1"> 
        hi all 
</CARD> 
</WML> 

I've also added the new mime types in the orion/config/mime.types file: 
text/vnd.wap.wml                wml 
application/vnd.wap.wmlc        wmlc 
text/vnd.wap.wmlscript          wmls 
application/vnd.wap.wmlscriptc  wmlsc 
image/vnd.wap.wbmp              wbmp 

Any help appreciated; 
also have you got any example of some simple Jsp which succesfully generates
a wml page? 

Thanks. 
simo 



Reply via email to