OK, I added JDOM to Maven, and when I tried this code I got following error:

org.apache.tapestry5.ioc.internal.OperationException
org.jdom.JDOMException: Error on line -1: Premature end of file.

pointing to this line of code:

Document xmlRequest = builder.build(inputStream);

As I sad earlier I use form on another page to get XML. This is the form:

<form  id="xmlForm" method="post" action="http://mypath/testXml";>
        <textarea name="xmlarea" />
        <input type="submit" value="submit" />
</form>

and I added your code to the page where I obtain XML, instead of:

public TextStreamResponse onActivate() {

                xmlarea = (String) request.getParameter("xmlarea");

                 //Just returns the same XML
                return new TextStreamResponse("text/xml", xmlarea);

                }

        } 

Do you have some clue?

-----
Niksa Mijanovic
Java developer, jr.
www.fleka.me
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3268954.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to