First, this is a very strange design, as though someone
wanted to do a proof-of-concept, but surely you do not want
this in a production environment! Either the servlet or the
Perl script can do all the processing, but for both to be
involved makes no sense.
Second, have the Perl write the cookie contents to an output
stream at the request of the servlet and the servlet can do
anything with the string, if that's what you want.
-mark
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's
Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On
Behalf Of
Suresh
Sent: Wednesday, January 03, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: Passing Cookies from CGI to Servlet
Hi
I got the following problem. If you have any idea please
help me!
Thanks
Soumendu
Between my browser and CGI(Perl) I have a servlet as a
go-between. (I have no reason to explain as
to why the architecture is such). The servlet simply takes
data from browser and passes it on to the
CGI and
the reverse. The servlet is basically a gateway between the
browser and the CGI. The first time I
submit I create a cookie in the CGI and this cookie has to
be passed to the browser via the servlet.
Except for the
Cookie information I have been able to get all other
information to and from servlet. Now, I have
found no method that would actually receive the cookie from
the CGI into the servlet. Please donot
tell me that
the method is getCookie (for it gets cookie from browser).
Can someone enlighten me on this?
____________________________________________________________
_______________
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