RE: Send data from servlet to servlet
I don't think comments about his personal hygiene are warranted. -Original Message- From: John Yu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 9:56 PM Another option is to use SOAP. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Send data from servlet to servlet
Martin, Could you give some code example? I am new to Servlet and don't know how to do it. I don't care whether to send as request or response. It's just a large string to be sent from servlet to servlet in another domain. Thanks. Jenny Martin Cooper martin.cooper@tumb To: 'Struts Users Mailing List' [EMAIL PROTECTED] leweed.com cc: Subject: RE: Send data from servlet to servlet 09/04/2002 09:14 PM Please respond to Struts Users Mailing List Are you trying to send the data as part of a request or as part of a response? If it's part of a request, then you should use a POST request with multipart/form-data encoding. If it's part of a response, then just send the data directly, and then return null from your Struts Action. -- Martin Cooper -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Send data from servlet to servlet
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. [EMAIL PROTECTED] 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Send data from servlet to servlet
Ted, How to send this large size string as response in perform() of the struts Action? Can you give some code sample? As I mentioned in previous email, neither set parameter nor set attribute works in this situation. Set parameter won't work for large size data and set attribute won't work due to redirect to another domain. I can't think of any other solutions. Thanks. Jenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Send data from servlet to servlet
Are you trying to send the data as part of a request or as part of a response? If it's part of a request, then you should use a POST request with multipart/form-data encoding. If it's part of a response, then just send the data directly, and then return null from your Struts Action. -- Martin Cooper -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Send data from servlet to servlet
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: [EMAIL PROTECTED] 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]