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

  • SEARCH
  • Home
  • 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 6153655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:07:44+00:00 2026-05-23T20:07:44+00:00

Some frameworks (Spring, Tomcat itself) add servlet request attributes that cannot be used within

  • 0

Some frameworks (Spring, Tomcat itself) add servlet request attributes that cannot be used within an EL expression by default. An example would be

javax.servlet.forward.context_path = /myWebapp

So, to get the value using JSTL I’d normally use

<c:out value="${javax.servlet.forward.context_path}" />

However that’s not working because the EL parser expects javaxto be the key of object A and servlet to be a property of that object (and so on).

So my question is: How do I escape the dot character?

I’ve tried using

<c:out value="${javax\.servlet\.forward\.context_path}" />

but that’s not working either and raises an error from the EL parser.

I know that when dealing with maps I can use something like

<c:out value="${aMap['key.from.map.with.dots']}" />

but thats not working with a first level object from the request, since I’ve also tried using

<c:out value="${['javax.servlet.forward.context_path']}" />

which is not working either.

Any ideas?

  • 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-23T20:07:45+00:00Added an answer on May 23, 2026 at 8:07 pm

    if you know the scope of the attribute, then you can fetch it from the appropriate implicit object, e.g.

    ${requestScope['javax.servlet.forward.context_path']}
    

    I’m not sure if there’s an implicit object that checks all scopes in the way that {xxx} does, though.

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

Sidebar

Related Questions

I used some Java Web App Frameworks before like Struts, Struts2, Spring MVC and
I have numerous Spring Framework-based applications that run on a Tomcat 5.5 server. Some
Most python frameworks will have a development webserver of some kind that will have
I'm using Spring.NET with Caliburn 2 and getting some exceptions from these frameworks at
I have a Java servlet website, but does not use any frameworks like Spring
I have a web-application in java, spring framework, hibernate on tomcat, that has basically
We're securing Mule services using the Spring Security Framework, and some of the services
I see some frameworks like Django using unicode all over the place so it
For Javascript some testing-frameworks exist, like JSUnit or js-test-driver. They are fine, but they
Some Genetic Algorithm frameworks, such as http://www.aforgenet.com/ requires many parameters, such as mutation rate,

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.