All the tags us introspection to access the objects. Introspection works only on non-static public fields and methods. You must find a way, possible with a façade, to make your static method non-static.
Edgar > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 6:18 PM > To: [EMAIL PROTECTED] > Subject: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]