Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 9th, 2005, 07:21 AM
Authorized User
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default J2EE & XSLT

i posted and earlier topic,
i found out that the problem

xmlResponseWrapper wrapper = new xmlResponseWrapper((HttpServletResponse)servletres ponse);

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));
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
Old September 9th, 2005, 09:39 AM
Authorized User
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts

Ok so i've busted my brains and the answer was there
If anyone is having the same problem, the problem is/was the ResponseWrapper, i used about 4 different wrappers and none of them seemed to work, but then i found this
In this file you have a war file, that include 3 diferent filters, one of them is a XSLT filter, so just check this and you'll be alright
Also it's from Sun so i think it's pretty much open-source

Similar Threads
Thread Thread Starter Forum Replies Last Post
J2EE 1.3 AND FedoraCore 4 j2ee -verbose DR POMPEII J2EE 1 April 16th, 2007 03:50 AM
XForms & XSLT kwilliams XSLT 3 January 25th, 2007 11:28 AM
J2EE & EJB vaishalimk J2EE 0 November 18th, 2005 03:00 AM
Java & XSLT safin XSLT 0 September 8th, 2005 01:11 PM
J2EE & tomcat,how do I set it up? 12345dela J2EE 1 January 2nd, 2004 06:18 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.