Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC : {beanName.property} not working

 
Aniruddh Joshi
Ranch Hand
Posts: 275
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Aniruddh Joshi
Ranch Hand
Posts: 275
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic