You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick Knutson <mi...@hotmail.com> on 2003/10/13 18:20:25 UTC
Urgent: issue with
I am sorry to say urgent, but I have to demo this to my boss this afternoon and I am stumped.
I have 3 different types of users. user, gold and platinum. I need to only show this edit button to those users with this tag as noted by Craig. But the button only shows up if I am logged in as a user, not gold, and not platinum.:
<logic:present role="user, gold, platinum">
<html:submit property="action" styleClass="form_button">
<bean:message key="button.edit"/>
</html:submit>
</logic:present>
Here is my web.xml setting.
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.baselogic.yoursos.struts.ExtendedActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>1</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<security-role-ref>
<role-name>user</role-name>
<role-link>user</role-link>
</security-role-ref>
<security-role-ref>
<role-name>gold</role-name>
<role-link>gold</role-link>
</security-role-ref>
<security-role-ref>
<role-name>platinum</role-name>
<role-link>platinum</role-link>
</security-role-ref>
</servlet>
---
Thanks
Mick Knutson
The world is a playground...Play Hard, Play Smart.
Visit http://www.YourSoS.com to learn how our "Personal Emergency Alert & Contact System" can help you Play Smart.
+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480
---