> -----Original Message-----
> From: Tim T. Young [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 11:59 AM
> To: Struts Users Mailing List
> Subject: Re: <bean:write>
> 
> 
> 
> Someone please correct me if I am wrong, but ...
> 
> <bean:write name="myString"/>
> 
> works doesn't it?  I think I remember doing that before.

Yes, that works. You only need to specify the 'property' attribute when you
*do* need to pull a value out of a bean.

--
Martin Cooper


> 
> Tim
> 
> 
> 
>                                                               
>                                                               
>                   
>                     "Aiken,                                   
>                                                               
>                   
>                     Weston -                                  
>                                                               
>                   
>                     Raleigh, NC"                              
>                                                               
>                   
>                     <WAiken@email                             
>                                                               
>                   
>                     .usps.gov>                                
>                                                               
>                   
>                                   To: 
> <[EMAIL PROTECTED]>                              
>                                           
>                     08/21/2002    cc:                         
>                                                               
>                   
>                     01:46 PM                                  
>                                                               
>                   
>                     Please                                    
>                                                               
>                   
>                     respond to                                
>                                                               
>                   
>                     "Struts Users        Subject:     
> <bean:write>                                                  
>                           
>                     Mailing List"                             
>                                                               
>                   
>                                                               
>                                                               
>                   
>                                                               
>                                                               
>                   
> 
> 
> 
> Caterpillar: Confidential Green          Retain Until: 09/20/2002
>                                          Retention Category:  G90 -
>                                          Information and Reports
> 
> 
> 
> 
> Is there a struts tag to display a String that has been added to the
> Request as an attribute, instead of adding an object with a 
> property and
> a getter?
> 
> Non Struts way:
> 
> <%=request.getAttribute("myattribute")%>
> 
> Struts way:
> 
> ?
> 
> The bean:write tag wants an object with a getter and I simply want to
> pass a String and pull it out to display it.
> 
> Thanks
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



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

Reply via email to