Hi all,
a few weeks ago there was a whole discussion on this, so the archives
would
be a good place to look for it
http://archives.java.sun.com/archives/servlet-interest.html
It is OK to use getParameter. It is not deprecated anymore.
kind regards
Margarita
Robert A. Crawford wrote:
>
> 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.
>
> --
--
Margarita Smits
Institute for Construction and Design Methods
ETH Zurich, ETH-Zentrum, CLA-E23
CH-8092 Zurich, Switzerland
Tel: +41-(0)1-632 77 14
Fax: +41-(0)1-632 11 81
___________________________________________________________________________
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