Spring mvc Can';t使用jstl从模型和视图中获取模型

Spring mvc Can';t使用jstl从模型和视图中获取模型,spring-mvc,jstl,modelandview,Spring Mvc,Jstl,Modelandview,我无法使用jstl获得模型 Controller.java @RequestMapping(value="/update/{url_mapping}",method = RequestMethod.GET) public ModelAndView updatePicture(@PathVariable String url_mapping) { Picture picture = new Picture(); String url = url_mapping+".jpg";

我无法使用jstl获得模型

Controller.java

@RequestMapping(value="/update/{url_mapping}",method = RequestMethod.GET)
public ModelAndView updatePicture(@PathVariable String url_mapping) {
    Picture picture = new Picture();
    String url = url_mapping+".jpg";
    ModelAndView modelAndView =  new ModelAndView();

    picture = (Picture) pictureInfo.findPicture(Picture.class, url);
    modelAndView.addObject("picture", picture);
    modelAndView.setViewName("redirect:/update.jsp");

    return modelAndView;
}
我尝试过它可以从db中获取数据,但是当我使用modelandview将model和view传递给update.jsp时,它没有显示任何内容

update.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <c:out value="${picture.url_mapping}"/>
</body>
</html>

在此处插入标题

为什么使用重定向??只需使用
ModelAndView ModelAndView=newmodelandview(“update.jsp”)
并删除行
modelAndView.setViewName(“重定向:/update.jsp”)。为什么使用重定向??只需使用
ModelAndView ModelAndView=newmodelandview(“update.jsp”)
并删除行
modelAndView.setViewName(“重定向:/update.jsp”)