This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Common code not executing in Spring MVC  RSS feed

 
raja singh kumar
Ranch Hand
Posts: 189
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The question is on Spring MVC. I am using @ModelAttribute at method level and as method parameter also. I have written a method in the controller called addingCommonObject which adds headerMessage. The output does not display the common code and header does not get displayed although I am able to see the parameters name and hobby on the browser. Somebody please help me

web.xml


spring-dispatcher-servlet.xml


HelloController.java



AdmissionForm.jsp



AdmissionSuccess.jsp


Student.java
















 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!