this is not possible as far as i know .. this is a limitation of JSP custom tags

-----Original Message-----
From: Boris Brinza [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 1:28 PM
To: [EMAIL PROTECTED]
Subject: tag within tag


hi
in my application i have defined custom tag in this form :

<repro:security roles="aa,bb">
  <a href="...">edit record</a>
</repro:security>

this tag checks if curent user is in required role to perform edit and
if so, link is displayed...nothing
hard to understand :-))
but now i need to allow to edit record for user who created it.
so i added parameter "ownerof" and i want to pass ID of record being
rendered and in security tag i want to check if user is creator of
record.
and now i have this problem
how can i pass parameter to custom tag by another struts tag? 
i tried to call tag within tag like this:

<repro:security roles="aa,bb" ownerof='<bean:write property="recId"/>'>
  <a href="...">edit record</a>
</repro:security>

but it doesn't work
is it possible dynamically set some parameters to tag by other tag?

thanks in advance




PXP Slovakia s.r.o.
Boris Brinza
IT Developer
Kukuricna 1, 831 03 Bratislava, Slovakia
phone:  + 421 2 492 65 302
mail :  [EMAIL PROTECTED]
web  :  http://www.pxpgroup.com
icq# : 99700104


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


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

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

Reply via email to