hmm...someone on a rant here ;) what you want to do is something like:

<html:text name="yourBeanName" property="yourBeanGetter"/>



-----Original Message-----
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 12:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Prob:Calling a bean:write inside html:text



YOU CAN'T NEST TAGS. 

YOU CAN'T NEST TAGS.

You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags
is prohibited. If you nest a tag inside another tag, the page won't compile.
Nesting tags ist verbotten. Do not nest tags if you want your page to work. 

The following won't work:

<html:test property="<bean:write property="something" />" />

The above won't work. 

Working pages do not have nested tags. The JSP specification prohibits
nesting tags. If you nest tags, you are supporting terrorists. If you put
one tag inside the attribute of another tag, the page will not compile.

"All work and no play make Homer something something."

-= J


> -----Original Message-----
> From: guruprasad jakka [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Prob:Calling a bean:write inside html:text
> 
> 
> Hi,
> 
>   Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
> 
>  I tried initializing a textbox from one of the earlier bean's
> property,by nesting the bean:write inside html:text.
> It is giving errors.
> 
> <html:text    property="username"     value =
> "<bean:write  property="phone"        name="registrationForm"/>"/>
> 
> I tried leaving the quotes but invain.
> 
> Is there a proper syntax for such operation?
> 
> 
> Thanks.
> J G Guru Prasad
> V sem, Information Technology,
> Bachelor of Engineering,
> National Institute of Technology Karnataka, Surathkal.
> ( formerly KREC )
> 
> 
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> ---------------------------------------------------------------------
> 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