struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samere, Adam J" <asam...@paychex.com>
Subject RE: Adding JSP tag as a parameter to another jsp tag
Date Tue, 06 Jun 2006 13:01:37 GMT
Assuming your test:example tag's property attribute supports
expressions, you could set the value of the <title:renderTitle/> into a
page scoped variable then write it into the property attribute using an
expression. For example, using c:set from JSTL:

<c:set var="myTitle"><title:renderTitle/></c:set>
<test:example name="abc" title="123" property="${myTitle}"/>

-----Original Message-----
From: Shoukat, Faisal [mailto:faisal.shoukat@northgate-is.com] 
Sent: Tuesday, June 06, 2006 8:54 AM
To: Struts Users Mailing List
Subject: RE: Adding JSP tag as a parameter to another jsp tag

Hi,

Can anyone advise on how to call a jsp tag as a parameter to another jsp
tag:

For example: (this is completely hypothetical but matches my case)

<test:example name="abc" title="123" property="example"/>

Now in the property element I Want to call another tag which is already
written which returns me the string required for example
<title:renderTitle/>

So it would look like 

<test:example name="abc" title="123" property="<title:renderTitle/>"/>

However I don't know how to add the second tag

Any one know?

Thanks


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


-----------------------------------------
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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


Mime
View raw message