JSP页面显示为文本而不是编译

时间:2015-11-05 03:34:04

标签: spring jsp

Here is the screenshot of my problem for reference.

标题中的内容类型是text / html,根据我的研究,上述错误可能是因为内容类型是text / plain。     有人可以帮我这个吗?以下是jsp文件的源代码。

<html>
<head>
<title>Spring MVC Tutorial by Crunchify - Hello World Spring MVC Example</title>
<style type="text/css">
body {
   background-image: url('http://crunchify.com/bg.png');
}
</style>
</head> 
<body>${message}

    <br>
   <br>
<div style="font-family: verdana; padding: 10px; border-radius: 10px; font-size: 12px; text-align:center;">

    Spring MCV Tutorial by <a href="http://crunchify.com">Crunchify</a>.
        Click <a
        href="http://crunchify.com/category/java-web-development-tutorial/"
        target="_blank">here</a> for all Java and <a
        href='http://crunchify.com/category/spring-mvc/' target='_blank'>here</a>
       for all Spring MVC, Web Development examples.<br>
   </div>
</body>
</html>

0 个答案:

没有答案