Results 1 to 2 of 2

Thread: Getting a bean with spring:eval

  1. #1
    Join Date
    Jun 2009
    Location
    Vicenza, Italy
    Posts
    84

    Default 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. #2
    Join Date
    Jun 2009
    Location
    Vicenza, Italy
    Posts
    84

    Default

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

    Sorry for having bothered you.

    Stefano

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •