That way,we too are using getQueryString in doPost method, which works fine.
What i quoted down is from Jason Hunter's book pg:16/17.And it seems quite
rational.
How do u send parameters?
Are they encoded with the url (using ? and + signs) or
in a separate string using URLEncoder.encode()method ?
If i recall correctly, doGet, getParameter() worked, if i send parameters
in second way i.e. encoding them in a string.
Secondly, i do not know about html, but in case of applet to servlet comm. a
handshake is required for any data transfer.
rgds.,
komal.
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin
> Gross
> Sent: Monday, May 17, 1999 7:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: servlet doPost & doGet methods
>
>
> I disagree. I've used getParameter() in my doGet() methods
> successfully for months. Of course, it could be a Servlet
> engine dependant feature...
>
> I've used it with JSDK 2.0, JSDK2.1, and JRun 2.3.
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Komal
> Mangtani
> Sent: Monday, May 17, 1999 12:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: servlet doPost & doGet methods
>
>
> > -----Original Message-----
> > Hi to all,
> >
> > i'm using a simple servlet application: there is a servlet called
> > CreatePage who creates a form on the browser, and a servlet called
> > ReadRequest.
> > I send some data with POST (name) and some other with GET (id)
> >
> > <form method=post action=readrequest?id=20>
> > <input type=text name=code>
> > <input type=submit>
> > </form>
> >
> > in my servlet readrequest i have both doPost and doGet methods... but
> > only doPost starts after data was sent from browser...
> > now i can read only the post data with getParameterValues()... In order
> > to read the GET data i must call getQueryString... who contains the
> > entire query string (ID=20).
>
> The doPost and doGet methods are designed in different way. As doGet is
> designed to get data from servlet,u can send only query strings to servlet
> thru' this method.
> hence only getQueryString works for doGet.
> While in case of doPost, it is designed to post(send) data to servlet and
> can handle parameterized requests for info.
> Hence getParameter will work.
> > Can I use the method getParameterValues even for the GET data, if there
> > is both POST and GET??
> i don't think so.
> rgds.,
> komal.
>
> __________________________________________________________________
> _________
> 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