wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Spring MVC : {beanName.property} not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring MVC : {beanName.property} not working" Watch "Spring MVC : {beanName.property} not working" New topic
Author

Spring MVC : {beanName.property} 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
${beanName.property}
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.


Anrd
"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
Bartender

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
 
subject: Spring MVC : {beanName.property} not working
 
Similar Threads
I wonder how servlet works
[Spring+Hibernate]Invalid property
issues in calling the ejbcontroller (EJB 3.o ) from the controller using spring Frame
Problem with validation example
Spring MVC AOP Logger