<bean:write name="Bean" property="property"/>
However not too sure about if the get method needs to return a String in order Java can actually make nicely reflection over the Bean. Otherwise I guess you would get a "Not accesor method found...".
Why do you actually returns a int value?
From: Mariano García <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Write a bean property from a jsp page Date: Fri, 12 Sep 2003 09:40:38 +0200
>
> check that your Bean has get/set methods for accessing your property, also
> of course, check that Bean is in some of the JSP scopes.
>
Ok. I have another question.
How can I write on my jsp page a bean method result? For example, I have a Bean with the following method: public int getID (String str)
How can I execute this method and write the result from my jsp page using struts tags?
Regards.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]