Hi, Create new function in your user object: public boolean isAbleToConfigure() { return canConfigure(); }
<logic:equal name="currentUser" property="ableToConfigure" value="true"> <html:link.... </logic:equal> (The problem why you can't use canConfigure directly is that it doesn't satisfy the java bean spec for bean naming, and therefore can't be resolved by the tag). Regards Leon > -----Ursprüngliche Nachricht----- > Von: Murray Collingwood [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 31. August 2005 03:56 > An: user@struts.apache.org > Betreff: Testing a boolean function > > Hello > > I want to place a 'Configuration' link on a page if the > currently signed on user has an appropriate security level. > > My security level (as a column in my User table) is defined > as INT with a value from 0 through 10. The user needs to > have security of 10 in order to see this link. > > I have a User bean, referred to with the property name of > "currentUser" with a security function defined as: > public boolean canConfigure() { > return (security > 9); > } > > What tag library function should I be using to wrap around my > html:link so that it only appears when the user security is 10? > > Kind regards > mc > > > FOCUS Computing > Mob: 0415 24 26 24 > [EMAIL PROTECTED] > http://www.focus-computing.com.au > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.10.17/84 - Release > Date: 29/08/2005 > > > --------------------------------------------------------------------- > 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]