Re: Re: XML requests

2010-11-16 Thread niksami
Thank you. I'll try that, and then I'll inform you about success. Kind regards, Niksa -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267210.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Re: XML requests

2010-11-16 Thread Thiago H. de Paula Figueiredo
On Tue, 16 Nov 2010 09:55:06 -0200, niksami wrote: And parameter name should be? Name of textarea from which is sent XML POST request? Yes. It's just an ordinary text area. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instru

Re: Re: XML requests

2010-11-16 Thread niksami
And parameter name should be? Name of textarea from which is sent XML POST request? -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267201.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Re: XML requests

2010-11-16 Thread Thiago H. de Paula Figueiredo
On Tue, 16 Nov 2010 09:48:33 -0200, niksami wrote: So my problem is how I can exchange that XML between that 2 applications. I can return it by TextStreamResponse, but how can I receive it from that other app? That other app will send the XML POST request. Just @Inject Request and use the

Re: Re: XML requests

2010-11-16 Thread niksami
Ok... This is simplified situation... Another application needs to communicate with my Tapestry application (to get some data). That application will send XML to my page. On my page I will get that XML, add some data to it, and then return the XML back to that application. So my problem is how I

Re: Re: XML requests

2010-11-16 Thread Richard Hill
You need to be a little clearer about the flow of your XML - where it originates, what you need to do with it and where it needs to go. -Original Message- From: niksami Reply-to: "Tapestry users" To: users@tapestry.apache.org Subject: Re: Re: XML requests Date: Tue, 16 N

Re: Re: XML requests

2010-11-16 Thread niksami
Thank you again for your answer. But I don't understand you completely. Form with TextArea can be used to obtain XML from another page that is sent to my page with POST, or just to send POST? How can I access that XML that other page sent me? Do I need to use Request, and then access it from param

Re: Re: XML requests

2010-11-16 Thread Thiago H. de Paula Figueiredo
On Tue, 16 Nov 2010 06:56:34 -0200, niksami wrote: Yes, I need POST to receive XML and then GET to return the new XML back to that app. TextStreamResponse works well to return the XML back, but can someone show me some example with POST. Just something like "Hello World" example to show me

Re: Re: XML requests

2010-11-16 Thread niksami
Thank you for your answers. Yes, I forgot about special signs, but also I found that activation context would not supply my needs (because that other app can not access my page with added arguments to URL). Yes, I need POST to receive XML and then GET to return the new XML back to that app. Text

Re: Re: XML requests

2010-11-15 Thread Thiago H. de Paula Figueiredo
On Mon, 15 Nov 2010 14:53:46 -0200, nille hammer wrote: Hi niksami, Basically I need to receive XML as a parameter, for example as a String in onActivate() method. I would not recommend to use this approach. And if you do it although, beware of some special characters in the XML that mi

Re: Re: Re: XML requests

2010-11-15 Thread nille hammer
might be happy with POST-requests. That too would spare you from the problems described in my previous mail. In this case you would't be using the activation context but forms. Cheers nillehammer - original Nachricht Betreff: Re: Re: XML requests Gesendet: Mo, 15. Nov 2010

Re: Re: XML requests

2010-11-15 Thread nille hammer
Hi niksami, > Basically I need to receive XML as a parameter, for > example as a String in onActivate() method. I would not recommend to use this approach. And if you do it although, beware of some special characters in the XML that might be interpreted by Tapestry. E.g. an XML containing a "/"