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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:07:23+00:00 2026-06-15T13:07:23+00:00

iam using a very basic basic basic controller in spring mvc … @RequestMapping(/welcome) public

  • 0

iam using a very basic basic basic controller in spring mvc

...
@RequestMapping("/welcome")
    public ModelAndView helloWorld() {

        String message = "Hello World, Spring 3.0!";
        return new ModelAndView("helloteste", "message", message);
    }
...

but when accessing it from a jsp, nothing is shown.
Jsp bellow

<html>
<head>
<title>Spring 3.0 MVC Series: Hello World </title>
</head>
<body>
${message}

</body>
</html>

Result on the screen (the server does not resolve the tag …)

${message}

However if i get te info directely from the attributes of the request, it works …

<%
String s = (String ) request.getAttribute("message");
out.print(s);

%>

Why the notation ${…} is not working ???

  • 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-06-15T13:07:24+00:00Added an answer on June 15, 2026 at 1:07 pm

    It seems as if the JSP is not resolving the expression language. This can be a configuration issue if your web.xml file does not specify a version attribute of 2.4 or greater for the <web-app/> tag. In this case, I would recommend updating your web.xml file to following, provided that your app server is modern enough:

    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        id="WebApp_ID" version="2.5">
    
    </web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks to Col. Shrapnel I am using a VERY basic PHP script to send
I am using very similar loops to iterate all public fields and properties of
I am using EF4.0 to do in my mind a very basic query. I
I'm trying to write a basic drawing widget using the Tkinter library. The very
I am having a problem with JSTree. I am using very basic examples but
I am using a very basic java sound class to stream audio from Bing
i am using SimpleXML for very basic xml structure and after finding my specific
I am using PHP to build a very basic login script . However, the
I am using a very basic jquery script to show an image on hover
kindly excuse if my question is very basic. I am using Xcode 4.3.3, and

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.