Questions tagged [spring-el]

The Spring Expression Language (SpEL for short) is a powerful expression language that supports querying and manipulating an object graph at runtime. The language syntax is similar to Unified EL but offers additional features, most notably method invocation and basic string templating functionality.

Spring Expression Language was introduced in Spring 3.0.x

The Complete reference can be found in the reference documentation.

Guides:

Video tutorial on Spring Framework

Blog:

Related tags

958 questions
0
votes
2 answers

SPEL (Spring Expression Language) Collection Selection calling methods/functions in selection

I am trying to write simple validation rules with SpEL I want to be able to say something like, "Do any elements in the List have a value greater then x". Simple case works fine, but I wanted to extend it to get the absolute value first and then do…
laurie
  • 6,011
  • 4
  • 29
  • 22
0
votes
1 answer

Accessing a spring bean in a SpEL expression while avoiding a name clash with webflow scoped variable

I have the following code in webflow: where payPageProxyUrl in the expression is defined as a spring bean:
0
votes
1 answer

Spring SpEl and placeholder combination

I work with Spring Batch and want to make a dynamic placeholder, which will take a value from properties file depending on input param. So I have and I can access: #{jobParameters['fileExtension']} ${file.ext.csv} and I want to make something like:…
xsiraul
  • 414
  • 1
  • 5
  • 16
0
votes
1 answer

Can i use ${} instead of #{} in SpEL in Spring 3.0.x?

I am using SpEL in my xml configuration file. By mistake i used ${} instead of #{}, but it is working. can i replace # with $ ? Here is my code config-servlet.xml
0
votes
1 answer

Spring Expression Lanuage SPEL: concate two properties and assign value to third property

I am new to SPEL in Spring. I am not sure whether we can do something like this?
Shaile
  • 11
  • 1
0
votes
2 answers

How do I pass the return value of a bean to an XML attribute using Spring Integration? Most likely involves SpEL

I'm following the Spring Integration quick start tutorial and everything is working fine as outlined. I see that in the transformer a @newline Bean is referenced...
haventchecked
  • 1,916
  • 1
  • 21
  • 24
0
votes
1 answer

SpelParseException on setting key of MessageHeader to 'NEW' in Spring Integration

Below code is setting 'NEW' key of MessageHeader in Spring Integration 2.2.6. public Message getFlow() { return MessageBuilder.withPayload("demo").setHeader("NEW", "NEW").build(); } Below code retreives the value of 'NEW' key from…
Vikas Sharma
  • 1,235
  • 2
  • 27
  • 53
0
votes
1 answer

Rerfering current bean in Spring using SpEL

How can i get the reference of the current bean in SpEL in xml configuration. My code is something like this {
0
votes
0 answers

Using dynamic package names with Drools 6.0 Spring integration

Objective: I am trying to integrate Drools 6.0 with my application using Drools-Spring integration features. Issues faced: I need to define the knowledge bases in a spring context XML and make the package names to be dynamically passed into the…
sunsin1985
  • 2,437
  • 5
  • 22
  • 27
0
votes
2 answers

Error in SpEL while using Spring-Integration Gemfire support

I am using Spring-Integration 3.0 and Spring-Integration Gemfire support. I wanted my inbound-channel-adapter to pick up the objects in cache as payload based on SpEL expression. I have written a custom expression evaluator class to check the…
prasadsh
  • 35
  • 1
  • 5
0
votes
1 answer

Regarding dynamic Value Replacement in Spring config

I want to concatenate a string dynamically in springs.The string is
user3062513
  • 410
  • 1
  • 10
  • 19
0
votes
2 answers

How to configure address in JAX-WS CXF Client using JNDI lookup

I am looking up my JNDI value of endpoint (properties file is not an option) on server like this I would like to use the above looked up value in the place of address.
pingu
  • 645
  • 3
  • 11
  • 21
0
votes
1 answer

How to create a @RequestMapping @PathVariable to include a / in the parameter?

Is there a way in Spring 3.x to have a PathVariable in a request mapping include a forward /? I've tried different regexs that I thought would have parsed properly, but it seems that they never manage to pick up the forward /. I found this related…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
0
votes
2 answers

Spring Cache + Spring Expression Language (SpEL) + Redis

org.springframework.expression.spel.SpelEvaluationException: EL1007E:(pos 0): Field or property 'orderId' cannot be found on null orderId is one of the property in my order's Vo How to use Spring Spring Expression Language (SpEL) in my…
Rajasekhar
  • 17
  • 1
  • 2