下面的是我的jsp源代码
此文件命名为0204.jsp
<html>
<title>
forward 的例子
</title>
<head>
<%@ page contentType="text/html;charset=GB2312" %>
</head>
<body>
<%
double free =RunTime.getRunTime().freeMemory();
double total=RunTime.getRunTime().totalMemory();
double radio=free/total;
if(radio<0.5)
{%>
   <jsp:forward page="0202.jsp"/>
<%}
else
{%>
    <jsp:forword page="0201.jsp"/>
<%}%>
</body>
</html>
此文件命名为0201.jsp
<html>
<head>
<title>JSp data Example</title>
<%@page language="java" %>
<%@ page contentType="text/html;charset=GB2312"%>
</head>
<body>
<%! int value =0;%>
<%
for(int i=1;i<100;i++)
{
    value =value+i;
}
%>
<p>从一加到100的结果为:<%=value%></p>
    <p>今天是:<%=new java.util.Date()%></p>
</body>
</html>
此文件命名为0202.jsp
<html>
<title>
jsp转义字符的例子
</title>
<head>
<%@page contentType="text/html;charset=GB2312" %>
</head>
<body>
<p>
<%
out.println("测试的是转义字符的例子:\'");
%>
</p>
<p>
<%
out.println("测试的是转义字符的例子:\"");
%>
</p>
</body>
</html>
好像这是最基础的问题了 呵呵 不知道为啥在地址栏里输入http://localhost:8080/jsp/0204.jsp时 那么多exception啊!!
那三个文件保存在C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\jsp下....

解决方案 »

  1.   

    为什么放在Apache Software Foundation\Tomcat 6.0\webapps\ROOT\jsp下呢?
    不是应该放在Apache Software Foundation\Tomcat 6.0\webapps下吗?与ROOT同级目录吧
      

  2.   

    HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /jsp/0204.jsp(19,11) Invalid standard action
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
    org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1156)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
    org.apache.jasper.compiler.Parser.parse(Parser.java:133)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
    --------------------------------------------------------------------------------Apache Tomcat/6.0.13
      

  3.   

    jsp目录是我自己建的,不过此时我在浏览器地址栏中的输入也改变了啊  其他两个都能正常显示
      

  4.   

    我建议你把工程(jsp整个包)都放在Apache Software Foundation\Tomcat 6.0\webapps下,与ROOT同级目录试试先,不行再说
      

  5.   

    /jsp/0204.jsp(19,11) 看这一行
      

  6.   

    谢谢大家 解决   错误处  Runtime大小写错了  forward拼写错误   不好意思,,呵呵  才发现!!!!