Urgent: issue with logic:present role=user, gold, platinum
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-nameaction/servlet-name servlet-classcom.baselogic.yoursos.struts.ExtendedActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value1/param-value /init-param load-on-startup1/load-on-startup security-role-ref role-nameuser/role-name role-linkuser/role-link /security-role-ref security-role-ref role-namegold/role-name role-linkgold/role-link /security-role-ref security-role-ref role-nameplatinum/role-name role-linkplatinum/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 ---
RE: Urgent: issue with logic:present role=user, gold, platinum
Remove the space after , this may work. logic:present role=user,gold,platinum Thanks Nazeer -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 12:20 PM To: struts Subject: Urgent: issue with logic:present role=user, gold, platinum 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-nameaction/servlet-name servlet-classcom.baselogic.yoursos.struts.ExtendedActionServlet/servl et-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value1/param-value /init-param load-on-startup1/load-on-startup security-role-ref role-nameuser/role-name role-linkuser/role-link /security-role-ref security-role-ref role-namegold/role-name role-linkgold/role-link /security-role-ref security-role-ref role-nameplatinum/role-name role-linkplatinum/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 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent: issue with logic:present role=user, gold, platinum
It seems as though I was assuming it did not matte about whitespace. I have used this technique many other places to keep the code cleaner. I am very sorry that I had such an issue for something so easy to fix. --- 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 --- - Original Message - From: Syed, Nazeer [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Mick Knutson [EMAIL PROTECTED] Sent: Monday, October 13, 2003 9:26 AM Subject: RE: Urgent: issue with logic:present role=user, gold, platinum Remove the space after , this may work. logic:present role=user,gold,platinum Thanks Nazeer -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 12:20 PM To: struts Subject: Urgent: issue with logic:present role=user, gold, platinum 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-nameaction/servlet-name servlet-classcom.baselogic.yoursos.struts.ExtendedActionServlet/servl et-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value1/param-value /init-param load-on-startup1/load-on-startup security-role-ref role-nameuser/role-name role-linkuser/role-link /security-role-ref security-role-ref role-namegold/role-name role-linkgold/role-link /security-role-ref security-role-ref role-nameplatinum/role-name role-linkplatinum/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 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]