Bob Withers wrote:
>
> Why not just write your own variation?
>
> String getParm(HttpServletRequest req, String name)
> {
>     return(getParm(req, name, ""));
> }

Why not?  Because I already did it for you.  :-)  My class support
auto-type conversions as well as default values if the parameter wasn't
specified or the type conversion failed.  It's from Chapter 13 of my
book "Java Servlet Programming".

See http://www.servlets.com/resources/com.oreilly.servlet/.
Class is called ParameterParser.  Other goodies there too.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.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