Rob Gordon wrote:
> I am also using WebLogic and it is my tentative conclusion that it does NOT
> meet the spec on this. I am seeing attempt to call a setXXX when no
> parameter XXX appears in HTTP request parameter list.
>
> The specifics are my situation is that I have two setters setXXX with different
> signatures. At <jsp:setProperty id="bean" name="foo" property="*" /> WebLogic
> reports that is can't resolve setter because of ambiguity of setXXX(null). Again,
> this is the case where XXX does not appear as parameter. That is reporting
> this message at all tells me 1) it does attempt to invoke all setters and 2) for
> those w/o parameters in http request, it is passing null.
>
Having run into this one (in the context of Struts), I can tell you that you're going
to have portability problems when you have multiple setters with the same method name
but different argument types -- that violates the JavaBeans specification's design
pattern rules. The JavaBeans introspection logic looks at your bean and decides there
is *no* setter method for this property. Any JSP implementation that uses JavaBeans
introspection to find properties will never call your any of your setters at all.
>
> This leads me to conclude WebLogic is not in compliance per Hans reporting on
> section 2.13.2.1:
>
I cannot say whether WebLogic is compliant or not. I know (from bitter experience)
that JavaBeans with multiple setters for the same property name are definitely a
problem.
>
> rob
>
Craig McClanahan
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing
Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ
Applications to Tomcat
===========================================================================
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