Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
You probably would try creating an XML dom object first from the first servlet,
and then share this object with the second servlet in some way. There are many
ways of sharing objects between servlets within the same context. Simply write a
bean or a common class holding this object for you. If the two servlets are not
on the same server within the same context, you then need to think about
establishing a tunnel between the two as suggested by Raj.
Cheers,
Charles
Raj Kumar Jha <[EMAIL PROTECTED]> on 10/31/2000 08:38:26 AM
To: [EMAIL PROTECTED]
cc: (bcc: Charles Chen/YellowPages)
From: Raj Kumar Jha <[EMAIL PROTECTED]>, 31 October 2000, 8:38 a.m.
Re: How to pass Xml file between two servlets? [Scanned by Yellow Pages
PostMaster]
Hi,
I had a similar problem some time back. I suppose you are opening an
output stream from the first servlet and writing the contents, closing the
stream and then do further processing. In the second servlet after the input
stream is closed, you need to open and close an output stream in the second
servlet. I suppose this should work. Try it out...
Raj
----- Original Message -----
From: Martin Nwalal
To: [EMAIL PROTECTED]
Sent: Tuesday, October 31, 2000 1:39 PM
Subject: How to pass Xml file between two servlets?
Hi, all,
I would to pass XML file to one servlets to another servlets.
I have always this socket error:
java.net.SocketException: socket write error (code=10053)
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:87)
at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java,
Compiled Code)
at
weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
mpl.java, Compiled
at
weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputS
treamImpl.java, Co
at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
at weblogic.servlet.FileServlet.service(FileServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Can someone tell me where I acn find examples codes or tutorials?
Thanks for HELP
MARTIN
___________________________________________________________________________
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
___________________________________________________________________________
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
___________________________________________________________________________
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