"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.104571
Thanks, next time I'll ask Google before asking a dumb question :)
-
Niksa Mijanovic
Java developer, jr.
www.fleka.me
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3268918.html
Sent from the Tapestry - User mailing list archive at Nabbl
On Wed, 17 Nov 2010 09:11:18 -0200, niksami wrote:
I've also tried your code, but I get problem that I can not find
SAXBuilder as part of my Tapestry project... I'm using Tapestry 5.2...
What can I do in that case? :)
It's part of JDOM, which isn't included automatically by Maven when you
I've also tried your code, but I get problem that I can not find SAXBuilder
as part of my Tapestry project... I'm using Tapestry 5.2... What can I do in
that case? :)
Joost Schouten (mailing lists) wrote:
>
> More common is to deal with xml requests though a POST. In that ca
turns the same XML
return new TextStreamResponse("text/xml", xmlarea);
}
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3268862.html
Sent from the Tapestry - User mailin
More common is to deal with xml requests though a POST. In that case
you can do something like below.
Cheers,
Joost
@Inject
private RequestGlobals requestGlobals;
@OnEvent(value = EventConstants.ACTIVATE)
private Object activate() throws Exception {
HttpServletRequest
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
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
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
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
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.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267193.html
Sent
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
from parameter?
Please, write a line or two of code if you can.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267178.html
Sent from the Tapestry - User mailing list archive at Nabbl
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
. 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 how this method works (getting XML from POST).
I'm stuck on that
--
View this message in context:
http://tapestry.1045711.n5
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
On Mon, 15 Nov 2010 12:39:29 -0200, nille hammer
wrote:
Hello Niksa,
In my application I need to receive XML requests, and then to send the
response back to the client in XML format too. I tried to find some nice
solution here, but with no success. I hope you can give me some short
code
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
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 "/"
quot;, xml);
}
Thank you!
Niksa
Richard Hill-7 wrote:
>
>
> You don't specify where/how you want to receive XML requests from - is
> this server-to-server? If so this out of the realm of Tapestry, but
> there's plenty of java networking libs to help you do this.
>
>
Thanks, I'll try this.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3265787.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e
You don't specify where/how you want to receive XML requests from - is
this server-to-server? If so this out of the realm of Tapestry, but
there's plenty of java networking libs to help you do this.
With respect to sending an xml document/page to a browser client,
tapestry is not reall
Hello Niksa,
> In my application I need to receive XML requests, and then to send the
> response back to the client in XML format too. I tried to find some nice
> solution here, but with no success. I hope you can give me some short code
> examples.
As far as I understand this is n
Hello everyone.
In my application I need to receive XML requests, and then to send the
response back to the client in XML format too. I tried to find some nice
solution here, but with no success. I hope you can give me some short code
examples.
Best regards,
Niksa
--
View this message in
24 matches
Mail list logo