Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7643103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:21:45+00:00 2026-05-31T09:21:45+00:00

In Spring expression language (SpEL) each textual relational operator has a symbolic equivalent. For

  • 0

In Spring expression language (SpEL) each textual relational operator has a symbolic equivalent. For example, eq can be written as ==, and lt can be written as < (source here).

The logical operators, however, don’t have a symbolic equivalent – at least as far as I can tell. I have to use and and or, the expected notation of & and | is just not there (for some reason not is different, it has the ! equivalent).

Any idea if & and | are available, or if it is possible to extend Spring to support them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:21:46+00:00Added an answer on May 31, 2026 at 9:21 am

    You have to take a look at org.springframework.expression.spel.standard.Tokenizer in method process() where you will realize |, &, || and && are not supported. Adding this would require to subclass the Tokenizer and also to subclass the org.springframework.expression.spel.standard.InternalSpelExpressionParser because in its .doParseExpression()` method the Tokenizer is instantiated directly… Source of Spring 3.1 version was taken by me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to display a custom property using facelet expression language? For example: <h:outputText value=#{contact.customTypeProperty}
Is it possible with spring expression language to extract a collection and at the
I would like to concatenate a string within a ternary operator in EL(Expression Language).
For example, here is a string representing an expression: var str = 'total =
Is there a Regular Expression that can detect SQL in a string? Does anyone
I have the following string: cn=abcd,cn=groups,dc=domain,dc=com Can a regular expression be used here to
What is a good regular expression that can validate a text string to make
im trying to get a controller to return a view through a Expression Language-Filter,
Ok, here again. I'll promise to study deeply the regular expression soon :P Language:
Although I am almost sure this has been covered, I can't seem to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.