Guy:
There's a utility program that's part of our Expresso framework that does
this kind of thing: It's designed to allow you to call any servlet from a
command line - if it helps, it's at http://www.javacorporate.com, and the
object you want is com.javacorporate.common.server.RunURL
Mike
Javacorporate Ltd
http://www.javacorporate.com
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Guy
Nirpaz
Sent: Wednesday, September 01, 1999 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: servlet invocation from application (URLConnection?)
Hi experts,
Does anyone can explain this solution in deep. I'm guessing it's because
HTTP
needs to acknowledge, but I would like to get a better answer.
Thanks
Jes�s Mar�a Rom�n wrote:
> Hi srinivas:
>
> Thanks for the reply.
>
> I already found an example and it seams to work.
>
> Instead of calling:
>
> servletConnection.connect();
>
> I am now doing:
>
> DataInputStream input;
>
> InputStream is= new InputStreamReader(urlConn.getInputStream()));
>
> Although I don�t read anything.
> Thus, the servlet engine gets the stream to create the ServletResponse.
>
> Cheers.
>
> Jes�s Mar�a.
>
>
___________________________________________________________________________
> 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