struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Riyad Kalla <...@email.arizona.edu>
Subject Re: How to get a value from the from bean
Date Sun, 25 Apr 2004 13:58:34 GMT
Cool I'm glad it helped

Billy Ng wrote:

>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" <rsk@email.arizona.edu>
>To: "Struts Users Mailing List" <user@struts.apache.org>
>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: user-unsubscribe@struts.apache.org
>>>For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message