Earlier we had tried a lot with Object i/o streams but it never worked.
Heard that b'coz http is stateless protocol it cannot pass object data.  Is
it true?  That's the reason we used Data i/o Streams.

That's why we skipped the idea.  But now I have used streams to pass the
servername and it is working fine.

Thank u very much for the input,
Ashwini
e-mail: [EMAIL PROTECTED]



-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rohit
Parik
Sent: Wednesday, May 23, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: Re: GetParameter()-IllegalArgumentException


I believe that u need the servername in ur servlet to get the current
servername so that u can connect to some other servlet in the same server..
Is that correct...

If this is true then u dont need to "try" to get a parameter in .. u can use
the servletcontext methods to achieve the same.

If not, then I believe u r missing the point here. serverName is property of
ur simple class that calls the servlet.
Now u r passing a datastream to the servlet ( some UTF data)..
If u need to access the property of a class then u need to pass the object
of the class itself to the servlet using an ObjectStream.

I hope I have been able to explain what u r missing..

Regards
Rohit Parik

___________________________________________________________________________
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

Reply via email to