Hello all,

is setProperty with dynamic value only valid for String argument in?
or this is JRUN's bug (i'm using jrun 2.3.3)


<%
String myname = "mike";
int myage = 20;
%>

<jsp:setProperty name="mybean" property="name" value="<%= myname %>"/>
<jsp:setProperty name="mybean" property="age" value="<%= myage %>"/>

the 1st setProperty will run well, but the 2nd failed, the error msg
is


    45.         JSPRuntime.setBeanProperty(mybean, "mybean", "age",  myage );
                <---------------------------------------------------------->
*** Error: No match was found for method
"setBeanProperty(com.dion.NameAge, java.lang.String, java.lang.String, int)"

what's wrong with that?
thank you...

--
Best regards,
 dion                          mailto:[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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