Thanks Gemes.  That works, although it does add more scriplet, but I guess I
either have to live with that or write a custom tag.

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-----Original Message-----
From: Gemes Tibor [mailto:gemes@;regens.hu] 
Sent: Thursday, October 17, 2002 7:52 AM
To: Struts Users Mailing List
Subject: Re: Container Managed Security and Dynamic Role variables

2002. október 17. 13:46 dátummal Madel,Kurt ezt írtad:
> <bean:define id="pids" name="projectDetailForm" property="managerpids" />
>     <logic:present role="ADMIN,<%=pids%>">    
>         <html:link page="/action/edit_details" paramId="proj_id"
> paramName="projectDetailForm" paramProperty="id">Edit</html:link><br>
>         </logic:present>

Runtime expressions must start with '<%=' and end with '%>', so you'd better

write 

<bean:define id="pids" name="projectDetailForm" property="managerpids" />
<% String myRoles="ADMIN"+pids; %>
<logic:present role="<%=myRoles%>">    
...

Hth,

Tib

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

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

Reply via email to