
Originally Posted by
Enrico Pizzi
You'll hardly get any help without more info...post your controller and your jsp as a start...
Thank you for the reply. the controller is as simple as
@Controller
public class MessageController {
@RequestMapping(value="/show", method=RequestMethod.GET)
public String prepare(Model model) {
model.addAttribute("foo", "bar");
model.addAttribute("fruit", "apple");
return "show";
}
}
and the jsp is
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<title>My HTML View</title>
</head>
<body>
<h1>foo = ${foo}</h1>
<h1>fruit = ${fruit}</h1>
</body>
</html>
no exception thrown. it just shows ${foo} and ${fruit} on the page instead of "bar" and "apple". Any clues? Thanks a lot.