日期:2014-05-17  浏览次数:20802 次

为什么我的JSP文件预览显示源码呢

哪位大神帮我看一下怎么回事
------解决方案--------------------
加载到tomcat中后,输入:http://localhost:8080/项目名

------解决方案--------------------

response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
------解决方案--------------------
一看就是用dreamweaver,jsp文件要经过服务器编译以后才能查看,所以预览肯定是源代码。
还是用myeclipse写吧