You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mo...@physics.gmu.edu on 2003/11/20 00:17:52 UTC

URGENT:static methods in JSPs

Hi i have a static method in one of my bean classes as
public static List getCountriesListing() , and i am trying to call this
collection in my options tag as

<html:options collection="countriesListing.countriesListing"
labelProperty="countryName" property="countryCode" />

But the JSP page gives an error saying :
Cannot find bean under name countriesListing.countriesListing

Do i also need to create a setter for this method to be recognized as a
bean or something?

--Mohan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org