struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slattery, Tim - BLS" <>
Subject RE: bean defines
Date Fri, 18 Jun 2004 19:33:49 GMT
> Ok, well if I do the following:
>     <c:set var="cfb" value="${formBean}"/>
>     <c:out value="${cfb}"/>
> The name of the form object is written out.  But if I want to 
> access a property on my form cfb, how would I output that 
> value?  If I write <c:out value="${cfb.pageNumber}"/>, I get 
> a servlet exception saying that it is unable to find 
> "pageNumber" in object of class "java.lang.String"

Do you have a getter function for the pageNumber property? A method within
the cfb object that looks like this:

public String getPageNumber()
     return <somethingor0ther>;

Tim Slattery

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message