Why bother with that if all you need is for an object to be filled out which in the end mean that you want some data from a remote location.
Why not make an HTTP request and then as a response send an XML file with the data. You can parse the data in your first servlet and the second one will be able to serve the same data to other programs. d. Nandish Angadi wrote:
Hello All, 1) I have a class which implements java.io.Serializable 2) I open the URL connection from one servlet(A) to another servlet(B) and write the above class object(Obj) to the servlet (B) through as "ObjectOutputStream out1 = new ObjectOutputStream(urlconnection.getOutputStream()); 3) I open the ObjectInputStream in2 = new ObjectInputStream(request.getInputStream()); and read the class object (Obj) i am getting the "java.io.EOFException,java.io.StreamCorruptedException: invalid stream header" from teh servlet at location B, The serializable class is at both the ends. The requirement is i want to send the class object to one end, it gets filled and comes back, Any suggestions or any info is heighly appreciated Thanks for your time in advance Nandish ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
-- David Mossakowski Instinet Corporation ******************************************************************************* <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. ******************************************************************************* ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html