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

Reply via email to