I'd like to "include" an XML page request with esql query string and
"report type" (i.e. html, pdf, csv, etc.) as a "<jsp:include>" in a current
JSP page which already has my page security and other stuff.

Currently, in my JSP I have:
<jsp:include page="test.xml" flush="true" />

I'm getting the message:
"java.lang.IllegalStateException: Writer is already being used for this
request"

which from reading previous posts relates to the OutputStream (servlet) vs.
Writer (tomcat) incompatibility (only one can control the "writing").

My stand-alone XML file does what I want by outputting in HTML or PDF
(depending
on a form choice from the previous page that "calls" it and <xsp:pi> an
appropriate stylesheet filename), but I have concerns  about the XML file
being able to be called without any "checking" to ensure the website visitor
is "authorized" to view the page (this is for an online app). Otherwise,
wouldn't they be able to just put it in the URL and view it (although they
would have to know what parameters to "feed" it to get it to work right)?

The other thing is once I've "committed" the output type to a "JSP" page,
can
I tell the the output to be a PDV or a CSV to be downloaded?

Thanks!
Mark


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

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

Reply via email to