Spring 3 MVC - Does Anything Just Work? Very Simple Use Case Not Working
Posted
by jboyd
on Stack Overflow
See other posts from Stack Overflow
or by jboyd
Published on 2010-06-09T14:09:45Z
Indexed on
2010/06/09
14:12 UTC
Read the original article
Hit count: 244
index.jsp
...
<h1> ${myobject} </h1>
...
HomeController.java
@RequestMapping(value = "/index")
public ModelAndView indexPath() {
System.out.println("going home");
return new ModelAndView("index", "myobject", "isastring");
}
Output:
going home
The <h1>
on index doesn't show anything, how is this even possible? I absolutely cannot get my index.jsp to show this bean, I've tried using a usebean, I've tried storing it on the session, and now I'm directly placing it in the model. Nothing works. Spring 3 has been like every other spring release, intensely frustrating.
© Stack Overflow or respective owner