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 121075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:54:45+00:00 2026-05-11T03:54:45+00:00

In a JSP page(index.jsp): ${requestContext.requestURL} is the URL just shows the expression itself. It

  • 0

In a JSP page(index.jsp):

${requestContext.requestURL} is the URL 

just shows the expression itself. It used to be evaluated to something like ‘http://…/somerset/‘

I created the Maven project with maven-archetype-webapp archetype in Eclipse. The Jetty version is jetty-6.1.14.

My web.xml is simple:

<web-app>     <display-name>Archetype Created Web Application</display-name>     <servlet>       <servlet-name>SomersetServlet</servlet-name>       <display-name>SomersetServlet</display-name>       <description></description>       <servlet-class>com.foo.somerset.SomersetServlet</servlet-class>     </servlet>     <servlet-mapping>       <servlet-name>SomersetServlet</servlet-name>       <url-pattern>/som.do</url-pattern>     </servlet-mapping> </web-app> 
  • 1 1 Answer
  • 2 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. 2026-05-11T03:54:46+00:00Added an answer on May 11, 2026 at 3:54 am

    See Javascript String.replace(/\$/,str) works weirdly in jsp file for some possible reasons.

    Your web.xml should contain reference to web-app_2_4.xsd schema, like

    <web-app xmlns='http://java.sun.com/xml/ns/j2ee'       xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'       xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd'       version='2.4'> 

    This enables servlet 2.4 and jsp 2.0 processing, which includes EL.

    Btw requestContext is not valid implicit object.

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

Sidebar

Related Questions

I created dynamic web project , and add 2 items : index.jsp page like
I have Vector declared in index.jsp page like this: <%! Vector vNumbers = new
So I have a main JSP index page, index.jsp, which has several includes. Something
I'm trying to get http://localhost:8080/test to map to the index.jsp page. The jsp file
In my parent jsp page I've used: function popUpClosed() { window.location.reload(); } And in
iam having a jsp page Index.jsp which accept a only unicode string as its
I has a jsp page (index.jsp) with a form with two text fileds username
My index.jsp page, load my form with this line of code : $('#box').load('/Edit_Data.jsp?id=' +
I need to display build number in my index.jsp page <!DOCTYPE HTML> <html> <head>
For example on our index.jsp contains only one link: <a href=<s:url action='viewBook'/>>Your Book</a> In

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.