I have some trouble with req.getParameterValues (with NS 4.5, but perhaps
it's my environment, or another bug)
Now I use req.getInputStream(), and "cut" the inputstream for getting all
my value.
Format of inputstream :
name=value&name=value&....




crawford/18:56

Veuillez r�pondre � "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

Pour :    [EMAIL PROTECTED]
cc :   (ccc : Bertrand MASTALERZ/FRANCE/NORSYSF)
Objet :   Re: getParameter is deprecated




On Wed, Feb 24, 1999 at 02:38:51PM +0100, katrin cappar wrote:
> I use "getParameter" to get the value of a textfield. The java compiler
> marks this expression as deprecated. I tried "getHeader" but this
> produces an error message, but a "reload" (browser) on the errorscreen
> brings up the right html page with the value of the textfield.
> getParameter works without producing an error.

        "Deprecated" means, "expect this to go away". I understand
it in fact hasn't, but if you want to avoid that error message,
use:

        String value = (req.getParameterValues("param"))[0];

to get (basically) the same result.


--
Robert Crawford                 [EMAIL PROTECTED]
http://www.iac.net/~crawford

___________________________________________________________________________
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

Reply via email to