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 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've been researching PHP frameworks as of late for some personal projects, and it
I'm having some trouble with plain old JavaScript (no frameworks) in referencing my object
What are some of the ways? What frameworks can you use?
Recently there has been quite some hype around all the different mocking frameworks in
I'm new to the world of PHP frameworks and, after some initial investigation, came
I am used to develop web applications in Java (Struts, Spring, JSP...). But now
I'm trying to get Tomcat to write out the servlet contents as a bzip2
I am trying to implement a very basic before advice with Spring.Net, that just

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.