struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madel,Kurt" <kma...@csmi.com>
Subject RE: Container Managed Security and Dynamic Role variables
Date Thu, 17 Oct 2002 12:02:45 GMT
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>


Mime
View raw message