You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jw...@mmm.com on 2002/09/04 23:12:21 UTC

Send data from servlet to servlet

I have two web applications running on two domains. I need to send
data(large amount of xml string) from servlet in one application to servlet
in another application. I can't use parameter in request since the amount
of data is large. I can't use request.setAttribute() since attributes will
be lost during redirect to a dirrefent domain.

How should I send this large amount of String data? Thanks for any help.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Send data from servlet to servlet

Posted by Ted Husted <hu...@apache.org>.
If one is just requesting XML from the the other, you can just send the 
XML as the response and let the receiving servlet parse it. The Commons 
Digester is particular good at turning XML into a JavaBean (and vice 
versa). There's a RSS package that does this for the Rich Site Summary 
format.

-Ted.

jwang13@mmm.com wrote:

> I have two web applications running on two domains. I need to send
> data(large amount of xml string) from servlet in one application to servlet
> in another application. I can't use parameter in request since the amount
> of data is large. I can't use request.setAttribute() since attributes will
> be lost during redirect to a dirrefent domain.
> 
> How should I send this large amount of String data? Thanks for any help.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
<http://husted.com/struts/book.html>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Send data from servlet to servlet

Posted by John Yu <jo...@scioworks.com>.
Another option is to use SOAP.

You can plug Apache SOAP (http://xml.apache.org/soap/index.html) as a 
servlet into the servlet container (the receiving end).

At 05:12 am 05-09-2002, you wrote:
>I have two web applications running on two domains. I need to send
>data(large amount of xml string) from servlet in one application to servlet
>in another application. I can't use parameter in request since the amount
>of data is large. I can't use request.setAttribute() since attributes will
>be lost during redirect to a dirrefent domain.
>
>How should I send this large amount of String data? Thanks for any help.

-- 
John Yu                       Scioworks Technologies
e: john@scioworks.com         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>