struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Witbeck, Shane" <Shane.Witb...@bankofamerica.com>
Subject RE: Prob:Calling a bean:write inside html:text
Date Wed, 30 Jul 2003 16:42:48 GMT
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:jchilders@hotels.com]
Sent: Wednesday, July 30, 2003 12:36 PM
To: Struts Users Mailing List; guruprasad_jg@ureach.com
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:guruprasad_jg@ureach.com]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: struts-user@jakarta.apache.org
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

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

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


Mime
View raw message