Right you are, my bad. Many thanks!

JD

______________________________ Reply Separator _________________________________
Subject: Re: JWS 2.0 final problem
Author:  Hans Bergsten <[EMAIL PROTECTED]> at Internet
Date:    10/11/99 2:04 PM


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

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

Reply via email to