first.jsp
<html>
<body bgcolor="white">
<%
String Msg="Welcome to Abner's JSP world!";
out.print("Hello World!");
%>
<h2><%=Msg%></h2>
</body>
</html>
但是打开http://localhost:8080/myjsp/first.jsp时候,显示:
--------------------------------------------------------------------------------type Status reportmessage /myjsp/first.jspdescription The requested resource (/myjsp/first.jsp) is not available.
--------------------------------------------------------------------------------

解决方案 »

  1.   

    TOMCAT服务启动不正常,看看能不能访问默认页先
      

  2.   

    进入tomcat控制台看看发布情况
      

  3.   

    你自己看看其它的目录结构,你需要发布一下,需要有目录:WEB-INF,web.xml什么的,你自己看看吧
      

  4.   

    如果你只想试单个文件,可以直接放在ROOT下,试,不带虚拟目录
      

  5.   

    webinf有没有啊,这个很重要的啊,也就是配置问题的啊
      

  6.   

    “webinf有没有啊,这个很重要的啊,也就是配置问题的啊”
    说的对!!