File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Spring MVC : {} not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring MVC : {} not working" Watch "Spring MVC : {} not working" New topic

Spring MVC : {} not working

Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Hi Ranchers,
I have posted the same topic on Spring forum earlier, but did not get any response. Hence I am writing it here as well.

I am trying to complete step by step Spring MVC tutorial and am stuck at part 4 where business logic is referred from the Controller.

When I try to print the values present in the objects returned by the controller, the string
is displayed on the screen.

My jsp is :

and my controller :

The unit tests for all the beans and controller run successfully :
package test.springapp.web;

The aplication-servlet.xml follows :

Please guide me to a direction following which I can identify my mistake.

"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

I tested my bean injections. I instantiated the bean "/hello.htm" and the injections are working:

The test follows :

and the values are present in the required beans.
Hence I suspect there's a problem with my jsp .
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

It's not interpreting EL in your JSP pages. Check your WEB-INF/web.xml deployment descriptor - make sure it matches the correct specification to the web app container you are using. And make sure you're using a web app container that supports Servlet spec 2.4 or higher.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Spring MVC : {} not working
jQuery in Action, 3rd edition