<bean:write name="nameOfForm" property="somePropertyName" />
where nameOfForm is the name of the form defined in your struts-config and passed in via the 'name' argument in the action for this page.
And use bean:define to create a page-scoped bean if you just want to use it places (like in calculations and such). Also jsp:useBean works too.
Billy Ng wrote:
In the JSP, I need to a get a value from a form bean's property. How can I do it in the JSP?
I tried to pageContext.findAttribute("org.apache.struts.taglib.html.BEAN") to get the form bean, but it returned me null. Please help!
Billy Ng ---------------------------------------------------- This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]