> Jeff Vaccaro wrote:
>
> What is this error? and what does it mean?
>
> Note: c:\javaweberserver1.1.3\servlets\hellointro.java uses a deprecated
> API. Recompile with "-deprecation" for
> details.
>
> 1 warning
>
> So I recompile with -deprecation and get this error...
>
> c:\javaweberserver1.1.3\servlets\hellointro.java :13: Note: The method
> java.lang.String getParameter(java.lang.String)
> in interface javax.servlet.ServletRequest has been deprecated.
> String name = req.getParameter("name");
>
> Note: c:\javawebserver1.1.3\servlets\hellointro.java uses a deprecated
> API. Please consult the documentation for a
> better alternative.
Deprecation of a method in general means that the method is flagged for
removal in a later version of the API, because of some problem with the
method discovered when the API was updated. The JavaDocs for the API
should describe why it was deprecated and what to use instead.
In this particular case you're using JSDK 2.0 where getParameter is
deprecated in favor of getParameterValues. But this decision was reversed
so in the latest version of the JSDK (i.e. 2.1) getParameter is no longer
deprecated.
In other words, don't worry about it ;-)
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
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