request.getParameter() returns a String, so the toString() call is
unnecessary. It is also dangerous as request.getParameter("var") may return
NULL if "var" was not a form element in the submitted form, or if it was an
unchecked Checkbox or Radiobutton.

from
http://java.sun.com/products/servlet/2.1/api/javax.servlet.ServletRequest.ht
ml#getParameter
"public abstract String getParameter(String name)

Returns a string containing the lone value of the specified parameter, or
null if the parameter does not exist."

Lance Lavandowska
www.AgDomain.com
www.Brainopolis.com

----- Original Message -----
From: "Burky Stéphane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 10:36 AM
Subject: Re: Request.getParameter

>     - The real syntax is : String temp =
> request.getParameter("anvnamn").toString();

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to