Announcement Announcement Module
Collapse
No announcement yet.
jstl el in <sec:authorize access Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jstl el in <sec:authorize access

    hello!
    i'm new in security and not familiar english.

    so, i use jstl el in security tag.
    <sec:authorize , access attribute

    my code

    <sec:authorize access="hasRole('ROLE_ADMIN') or ( '${simpleBbs.username}' == principal.username )">

    just compare principal.username with simpleBbs.username

    that code makes this error

    /WEB-INF/views/bbs/bbsForm.jsp(63,3) According to TLD or attribute
    directive in tag file, attribute access does not accept any
    expressions

    althougth i can use ${ } in jsp and <c:out value="${}" />

    i don't know why that's not working.

    i use tomcat 6.0 and sevlet 2.5

    please help me
    have a nice day~ guys~

  • #2
    The new tag attributes don't support EL. I think this would be handy, and (other than the obvious potential confusion between JSP EL and SpEL) think it's probably worth asking Luke or filing an enhancement JIRA.

    Comment

    Working...
    X