struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arron Bates <>
Subject Re: I should know this, but....
Date Thu, 06 Jun 2002 15:11:17 GMT
First off, no need for the name attribute. If it's not working off the 
same bean structure the other nested tags are, then use the original 
<bean:define> tag using the name attribute to get to the separate bean.

Otherwise from face value the tag markup looks fine... you may want to 
vary the name of the property to the id for clarity however.

Another point which may save you having issues, is that you can use the 
"property" property like a directory structure with relative and 
absolute references...

Check this out for more informative info...

    ....The "The relative references and the "property" property" part...

...with that you can just use the <bean:write> tag where you need it, 
and use the absolute reference from the root of the bean to get to the 
right spot.

Hope any of this helps in some way.


Jerry Jalenak wrote:

>Hi All,
>Really easy question, but I'm apparently too dumb to figure it out  ;)
>I get a run time error of 'Missing Term' (about var1 in the anchor tag) when
>I do the following:
>	<nested:define id="var1" name="beanName" property="var1" />
>	<a href="<% =var1 %>">This is my anchor</a>
>This is a simplistic example - I actually need to use 'var1' in several
>places throughout my jsp inside of deeper <nested:?> tags.  Any ideas?
>This transmission (and any information attached to it) may be confidential and is intended
solely for the use of the individual or entity to which it is addressed. If you are not the
intended recipient or the person responsible for delivering the transmission to the intended
recipient, be advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify LabOne at (800)388-4675.
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message