Announcement Announcement Module
Collapse
No announcement yet.
Getting a bean with spring:eval Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting a bean with spring:eval

    Hi everybody,
    I'm not able to get a bean with the spring:eval tag.
    According to https://jira.springsource.org/browse/SPR-7312, I wrote
    HTML Code:
    <spring:eval expression="@securityChecks" var="securityChecks" scope="page" />
    and placed in the app context the bean
    HTML Code:
    <beans:bean class="it.cmc.security.SecurityChecks" scope="singleton" id="securityChecks" />
    However when I execute my page (a web flow to be precise) I get the following error:
    HTML Code:
    org.springframework.expression.spel.SpelParseException: EL1043E:(pos 49): Unexpected token.  Expected 'rparen())' but was 'bean_ref(@)'
    What am I doing wrong?

    A second question: is there a way to get the bean by class instead by name?

    Many Thanks,
    Stefano

  • #2
    D'oh!
    It was a typo of mine in the page.

    Sorry for having bothered you.

    Stefano

    Comment

    Working...
    X