• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where am I wrong in using the ModelAttribute annotation?

 
Anupam Dee
Ranch Hand
Posts: 42
Firefox Browser Tomcat Server Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


index.jsp
<body>
Hello World ${"data"}
</body>

The output i am getting is only HelloWorld.

Please help where am I wrong?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this instead



I still say you should set break points and step through code to see exactly what is happening. If you go into a dark room, you can't see anything. So turn on the lights. In this case that is debugging.

Mark
 
Anupam Dee
Ranch Hand
Posts: 42
Firefox Browser Tomcat Server Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much.
If you don't mind I really don't know how to set breakpoints and I really need to know. So if you can suggest any links about setting the breakpoints.
Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic