Thanks to all. Problem solved.

There was a linefeed outside the JSP tags.

<[EMAIL PROTECTED]%>            <------This was the linefeed causing problems.
<% String xxx;
 .....
....
%>

----- Original Message -----
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 8:20 PM
Subject: Re: Automatically generated linefeed before <?xml ...?> in the JSP
causes SAXException


> Eduardo Zurita wrote:
> > The qeq.jsp is a program that connects to remote URL using a
> > HttpURLConnection object. I do it this way because I need modify some
> > request properties. This remote URL returns XML data. The JSP simply
writes
> > (out.write) the XML to the output. But SAX doesn't like the output.
Always
> > there is a linefeed causing troubles. The linefeed is located just
before
> > any code I have written. The current error says:
>
> The linefeed probably comes from your JSP. Remember that
> everything outside the JSP tags go to the output too.
>
> > ----- Original Message -----
> Could you please get used to snipping those old quotes?
>
> J.Pietschmann
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to