Very true XML can be huge. But you never need to layout the whole object in XML, you just need to send the piece of info in the XML using which the rest of the object can be created. You would definitely need a little more than just the ID of a db column. SO basically you serialize / marshall it in your own defined way. One of the ways is the way larry suggested keeping the obj in the db and passing the ID, but it can be highly possible that if the servers are complete different they may also not have a common database they can access. In that case you would need to marshall and unmarshall your objects based on a strategy which can take care of the issue.
-----Original Message----- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: RE: [OT] request object w/ response.sendRedirect XML in the query string may work, but if you exceed about 2k, it goes b'bye. Given the verbosity of XML, that won't take long. :-) Another option would be to place the data to be passed into a database, and send the id to locate it once you get to the other end. The cost in terms of both performance and coding time may be prohibitive unless the data you are passing is large or valuable. Plus, you then have the overhead of cleaning up the data once you are done with it. Larry >>> [EMAIL PROTECTED] 03/29/04 12:16 PM >>> It seems like u need to send the attributes from a JSP-Tomcat env to another JSP-Tomcat or a ASP.net/IIS. In this case I think it could be very benefical if you send the data you want to send in an XML format that could be understood between platforms so that if it is ASP.net it can create the List or any other object using it, same in case of JSP /Tomcat . This has to be in the URL as Wendy suggested, I cannot think of any other ways. -----Original Message----- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:07 AM To: 'Struts Users Mailing List' Subject: RE: [OT] request object w/ response.sendRedirect Doesn't work with a response.sendRedirect() because of the new request object that gets constructed. I need to find a way to store something in the NEW object - just using request.setAttribute() stores the object in the OLD request, so it doesn't help...... 8-( Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -----Original Message----- > From: Geeta Ramani [mailto:[EMAIL PROTECTED] > Sent: Monday, March 29, 2004 12:59 PM > To: Struts Users Mailing List > Subject: Re: [OT] request object w/ response.sendRedirect > > > Jerry: > > Maybe you are looking for something like request.setAttribute(String, > Object)..? > > Geeta > > Jerry Jalenak wrote: > > > Wendy - > > > > It can be something as simple as an error status, or as > complex as a List > > object. I can't use the session because where I am > redirecting back to can > > be a second instance of Tomcat running on its own server, > or even an ASP.Net > > application running under IIS. So, I really need to put > the object in the > > request, so the receiving 'page' can look at the request > and determine if it > > got an error or not, and if not, pull the List object (or > whatever it's > > called in ASP-land) and to something with it. > > > > Thanks. > > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > -----Original Message----- > > > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > > > Sent: Monday, March 29, 2004 12:38 PM > > > To: Struts Users Mailing List > > > Subject: RE: [OT] request object w/ response.sendRedirect > > > > > > > > > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED] If I > > > > remember correctly, when you use a > > > > response.sendRedirect() there is a > > > > new request created and passed. > > > > > > Actually, the browser sends the request. The redirect > instructs the > > > browser to make a new request to the server, and Tomcat (I assume) > > > creates a new request object. Is the thing you need to > send something > > > you can place on the URL? You can redirect to a URL with a > > > query-string parameter, and you'll see that when the new request > > > comes in. > > > > > > If you need to retain something large or complex, you'll > probably need > > > to put it in the session so it will be there when the browser > > > sends its request. > > > > > > -- > > > Wendy Smoak > > > Application Systems Analyst, Sr. > > > ASU IA Information Resources Management > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > This transmission (and any information attached to it) may > be confidential and > > is intended solely for the use of the individual or entity > to which it is > > addressed. If you are not the intended recipient or the > person responsible for > > delivering the transmission to the intended recipient, be > advised that you > > have received this transmission in error and that any use, > dissemination, > > forwarding, printing, or copying of this information is > strictly prohibited. > > If you have received this transmission in error, please > immediately notify > > LabOne at the following email address: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]