I have sent the code of it to the list few minutes back
> I know that getParameter() can be used to access the data from the
> requested page. And even know that this will not be of very much help
when
> used with doPost() as it can read the data only once.
>>I am not sure what you are saying here, but getParameter() can be called
>>more than once for the same parameter and it will always return you the
>>value. Although, if you do call getParameter() then you can not read the
>>parameters in the InputStream obtained from the getInputStream() method.
I agree with this. I just did not make it more clear here.
> I have used a simple class to connect to Servlet through URLConnection.
> I've used service method in the servlet. I am using getParameter(..)
method
> to access a member variable from the simple class. But it is throwing
> ***IllegalArgumentException***?
>>How are you calling getParameter() in the *simple class*. If I understand
>>correctly, this method call should be in the servlet.
>>Can you post the relevant section of the code where you are getting the
>>exception.
I am calling the GetParameter() in servlet itself.
> Can't I use this method with simple class and servlet? Please let me know
> if there's something wrong in it.....
>>I think the user-agent (a simple class using URLConnection or a web
browser
>>or .. ) does not matter for the usage of this method as long as the
>>user-agent is following the HTTP protocol.
but i am getting an IllegalArgumentException here.
Regds,
Gokul
Thanks,
Ashwini
___________________________________________________________________________
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