"main.jsp": org.apache.jasper.JasperException: file:J:/Chat/myproject/chatmod/main.jsp(23,0) Expecting "jsp:param" standard action with "name" and "value" attributes 以上是错误提示~~
请知道的兄弟帮忙分析一下错误原因
非常感激~~

解决方案 »

  1.   

    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    main
    </title>
    </head>
    <body>
    <%
    int i;
    i=Integer.parseInt(session.getAttribute("ii").toString());
    i++;
    out.println(i);
    session.setAttribute("ii",String.valueOf(i));
    String str[]=new String[8];
    String name=request.getParameter("txtname");
    session.setAttribute("a",name);
    session.setAttribute("b",str);
    str[i]=request.getParameter("txtMsg");
    session.setAttribute("b",str);
    %>
    <jsp:include flush="true" page="showMsg.jsp" >
    </jsp:include>
    <br><br><br><br><br><br><br><br><br><br><br><br>
    <jsp:include flush="true" page="sendMsg.jsp">
    </jsp:include>
    </body>
    </html>//以上是源文件
      

  2.   

    showMsg.jsp
    sendMsg.jsp
    的代码呢
      

  3.   

    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    sendMsg
    </title>
    </head>
    <body bgcolor="#ffffff">
    <form method="post" action="main.jsp">
    <table align="left">
      <tr>
        <td>
          <%out.println(session.getAttribute("a"));%>:
          <input type="text" name="txtMsg"/>
          <input type="submit" value="发送"/>
        </td>
      </tr>
    </table>
    </form>
    </body>
    </html>
    //sendMsg.jsp代码
      

  4.   

    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    showMsg
    </title>
    </head>
    <body bgcolor="#ffffff">
    <%String str[]=new String[8];
      str=(String[])session.getAttribute("b");
      for(int i=0;i<str.length;i++)
      {
      out.println(str[i]);
      }
      %>
    </body>
    </html>
    //showMsg.jsp代码
      

  5.   

    <input type="text" name="txtMsg"/>
          <input type="submit" value="发送"/> 
    这两个“/”是什么呀?????
      

  6.   

    String name=request.getParameter("txtname");这个txtname在哪里呀  找不到这个  那么a就是null
     <%out.println(session.getAttribute("a"));%>:
    这句话就危险了
    我也不太明白 不过 是null很容易出现异常