el « Security « Spring Q&A





1. Using spring3 @Value to access PropertyPlaceholderConfigurer values?    stackoverflow.com

I'm trying to set the value of a string in a spring bean using @Value, when my property source is a subclass of PropertyPlaceholderConfigurer. Anyone know how to do this ? ...

2. How to use role-hierarchy in Spring Security 3 with Spring EL?    stackoverflow.com

I want to use @PreAuthorize annotation on service methods with Spring Security. One of requirements is to use role-hierarchy. But by default it is not enabled. I found that in SecurityExpressionRoot class ...

3. Access message source from EL    stackoverflow.com

Suppose I have the following message source file:

title=foo
somefield=bar
...
I always access it in the following way:
<fmt:message key="title" />
but I'd prefer to use EL instead, something like:
${messages.title}
Is there a way to use expression ...

4. List of Spring EL Variables?    stackoverflow.com

Spring EL supports a some predefined variables

  • {#systemProperties. ... }
  • {#systemEnvironment. ... }
  • {#request. ...}
  • {#session. ...}
The first two once are documented in the Spring Reference: chapter 6. Spring Expression Language (SpEL). The two ...

5. Spring EL and current user    forum.springsource.org

No there is not. Note that if something like this were implemented the object would need to be bound to a request scope. If you are using something like Spring MVC, ...

6. Access WebApplicationContext in custom EL function    forum.springsource.org

Access WebApplicationContext in custom EL function Hello, in order to create a custom EL function, I created a simple class with just one static method. I declared this function in the ...

7. Accessing currentUser role using EL    forum.springsource.org

Is this jar available in the Spring Framework 2.0.3? At the moment I am unable to download this jar for use with my application. Is there any other way to get ...

8. Spring Security EL can't be used in Pointcuts?    forum.springsource.org