This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Common code not executing in Spring MVC  RSS feed

 
raja singh kumar
Ranch Hand
Posts: 185
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
















 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!