Re: Automatically generated linefeed before ?xml ...? in the JSPcauses SAXException

2003-01-22 Thread Murad Jura
Hello Eduardo,


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


You may use the SourceResolver to access to your remote XML.
Another way is to set your favorite request parameters in your action. 
Next you can use they in the sitemap in this way:

map:act type=your-action
  map:generator 
src=http://your/http/resource?param1={param1}amp;param2={param2}/
  ...
/map:act

Or you can generate your query in your action:

map:act type=your-action
  map:generator src={query}/
  ...
/map:act

Murad Jura.


-
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]



Re: Automatically generated linefeed before ?xml ...? in the JSPcauses SAXException

2003-01-21 Thread J.Pietschmann
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]