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