<spring:url>标记无法正确解析链接</spring:url>

时间:2013-11-24 14:59:38

标签: java-ee spring-mvc jstl

我使用的是一个简单的welcome.jsp页面,代码是

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<link rel="stylesheet" href="<spring:url value="/style/petclinic.css" htmlEscape="true"/>" type="text/css"/>
<title>Pet Clinic</title>
</head>
<body>
<div id="main"/>
<table class="footer">
    <tr>
      <td><a href="<spring:url value="/" htmlEscape="true"/>">Home</a></td>
      <td align="right"><img src="<spring:url value="/images/springsource-logo.png" htmlEscape="true"/>" /></td>
    </tr>
  </table>

  </div>
</body>
</html>

但是在运行页面时页面中没有加载图像。我在浏览器中检查了url标签似乎没有正确解析链接。 来自浏览器的请求网址是

http://localhost:8080/PetClinic/forms/%3Cspring:url%20value="

任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案
相关问题