On Mon, 7 Feb 2000, Jeff Krueger wrote:

> <jsp:setProperty name="viewReport"  property="maxColumnsDefault" value=20
> />.  For some reason this won't work, no errors or anything.  If I change
> the definition of the method to setMaxColumnsDefault (String maxColumns) and
> change my jsp to look like
> <jsp:setProperty name="viewReport"  property="maxColumnsDefault" value="20"
> /> the value will get passed in but it is a string, and then I have to
> convert it.  Does setProperty only work with strings arguments?

No -- you can leave your method setMaxColumnsDefault(int), and JSP will
convert the value argument to an int for you.  The problem you're having
is a syntax error -- JSP requires that you put the value argument in
double (or single) quotes on the page, regardless of whether or not the
bean you're accessing is a String, int, or EvilObjectOfDeath.

Wes

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