> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Erez Bashan
> Sent: 19 January 2000 10:00
> To: [EMAIL PROTECTED]
> Subject: JSP and WML - problems with the "<?" tag
>
>
> I am writing JSP pages which generate WML pages (as opposed
> to the default
> HTML). My problem is that WML requires the following in every page:
>
> <?xml version="1.0"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
>     "http://www.wapforum.org/DTD/wml_1.1.xml">
>
> The JSP engine I use (JRUN) gives all kinds of errors about the "<?"
> directive. My current patchy workaround is:
>
> <%= "<?xml version=\"1.0\"?>" %>
>
> Anything better ?

I'd tend to use something like:

<%@ include file="xmlheader.jsp" %>

at the head of each page, as it looks neater and you only have one place to
change stuff - it then doesn't matter as much if the code is a bit messy.

Steve S

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to