Thank you.  It works perfectly.

Billy Ng
----------------------------------------------------
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

----- Original Message ----- 
From: "Riyad Kalla" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 23, 2004 6:33 PM
Subject: Re: How to get a value from the from bean


> If you are trying to print out the value:
> <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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to