Possible Duplicate:
JSP: EL expression is not evaluated
I have the following code in my controller.
@RequestMapping(value = "/sum", method = RequestMethod.GET)
public String sum(@RequestParam("input1") String value1,
@RequestParam("input2") String value2, ModelMap model) {
model.addAttribute(
"msg",
Integer.toString(Integer.parseInt(value1)
+ Integer.parseInt(value2)));
return "index";
}
Following is my view:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
<h2>Hello World!</h2>
<h2>Movie Name : <c:out value="${msg}"></c:out></h2>
</body>
</html>
But my output is
Hello World!
Movie Name : ${msg}
Where am i wrong?