Hi, bean:message works only with PropertyResourceBundles. Those are specified by name if you don't use the default ones. If you want to print the property of your Form use <bean:write name="logonForm" property="username"/> instead. HTH Filip
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 10:04 AM > To: Struts Users Mailing List > Subject: bean:message tag > > > > hi, > I am trying to print the message as follows using bean tag lib. > > <bean:message name="logonform" /> > > Where logonform is the name of the bean in request scope. > > Here is what the javadoc says about the name attribute: > > name :Specifies the attribute name of the bean whose property is accessed > to retrieve the value specified by property (if specified). If property is > not specified, the value of this bean itself will be used as the message > resource key > > But i get the error that "Property for message key must be a String" > > Am i missing something ? > > TIA > Ashwani > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]