John Dixon wrote:
>
> Hello,
>
> It seems as though my bean setters are not getting called on a .JSP
> page load with parameters passed.
>
> <%@ page import = "yBean" %>
> <jsp:useBean id="nb" scope="page" class="MyBean" />
> <jsp:setProperty name="nb" property="*" />
>
> then a resulting call to nb.getName() returns null even though I
> passed ?Name=foo to this page.
According to the JavaBeans spec, the property name corresponding to a getter
method starts with a lower case character, e.g. the property name corresponding
to "getName()" is "name", not "Name". So if you change the parameter name to
"name" it should work fine.
> This page works in JRUN and servletExec, just fails in JWS 2.0, any
> ideas?
I assume these implementations have "extended" the JavaBeans spec a bit then,
to work no matter what case the first character has.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html