On 3/16/06, Morten Andersen <[EMAIL PROTECTED]> wrote: > I want to use JSTL to check the role of the user (it can be one of many) > > I'm new to JSTL so even the simplest things gives me problems: > > I've set the role using request.setAttribute("role" , role); > > This tag: > <c:out value="${role}"/> > > Prints out the role fine > > While the following statements are newer true: > > <c:if test="${role}==editor"> <snip/>
Expression must be contained in ${ and } in its entirety i.e. ${role eq 'editor'} > The role is editor > </c:if> > > <c:if test="${role}=='editor'"> <snap/> ${role ne 'editor'} -Rahul > The role is editor > </c:if> > > Where do I go wrong? > > Morten > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]