J2EE & XSLT
Hi,
i posted and earlier topic,
i found out that the problem
xmlResponseWrapper wrapper = new xmlResponseWrapper((HttpServletResponse)servletres ponse);
wrapper.getData();
the getData() returns an empty byte[]
So my problem is that everything in the response is getting lost
My JSP is in fact a static page (there is no <% %> code), i've tried with a XML page, and with a HTML page, mas the result is the same, i even tried using <% %> with out.write in it, but the result is always the same
'Premature end of file.'
If i take out the filter, everything works fine (that is i get the XML/HTML page), and if i take out the
transformer.transform(xmlSource, new StreamResult(printwriter));
line
everything works ok also, because it does not translate.
the xmlSource variable is the wrapper.getData() translated into a StreamSource, if i change this to a regular file it works perfectly (that is the writing to the response part is working fine), the reading part is making me dizzy
sorry if this post is confusing, my english is not the best
I would apreciate any help
thanks
|