File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Where am I wrong in using the ModelAttribute annotation? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Where am I wrong in using the ModelAttribute annotation?" Watch "Where am I wrong in using the ModelAttribute annotation?" New topic
Author

Where am I wrong in using the ModelAttribute annotation?

Anupam Dee
Ranch Hand

Joined: Oct 18, 2010
Posts: 42



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

Joined: Feb 05, 2001
Posts: 17228
    
    1

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Anupam Dee
Ranch Hand

Joined: Oct 18, 2010
Posts: 42

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Where am I wrong in using the ModelAttribute annotation?
 
Similar Threads
Forward in Spring
Problem with CheckBoxes
Having problem in ModelAttribute and Pathvariable Annotation
How to return ModelAndView/redirect
Type [java.lang.String] is not valid for option items