> >     When a JSP page updates a bean from a form, and a form field is blank,
does
> > it just skip calling the setXxxx method, or does it call the setXxxx method
and
> > pass a String with a value of ""?
>
> It doesn't call the setXxxx method at all if the parameter value is an empty
> string ("blank"). This is the defined behavior per the spec.
>
> Hans
> --
> Hans Bergsten           [EMAIL PROTECTED]
> Gefion Software         http://www.gefionsoftware.com

    Ok if this is true then how has the corresponding parameter of that matching
empty string in the form been initialized? After posting a form of course.

    My thing is that after I post a form, request.getParameter() does not return
a null value like it did BEFORE I posted the form.  This means that my Bean is
being passed a "" String, thereby initializing the Bean property.

Anyone know why this is?

Brian

===========================================================================
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