"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 以上是错误提示~~
请知道的兄弟帮忙分析一下错误原因
非常感激~~
请知道的兄弟帮忙分析一下错误原因
非常感激~~
解决方案 »
- spring里controler里的void类型方法是怎么跳转的啊?
- jsp用户登录出错
- 下载在网页中位置固定但文件名无规律的系列图片
- Cannot find ActionMappings or ActionFormBeans collection
- rs.last()
- 大家讨论一下常用的jsp应用系统的技术架构吧
- 为什么代码中的汉字 显示出来是乱码?在线等!
- 为什么我的JDK 和Tomcat 中链接数据库 只有JDK可以?
- 窗口最小化的问题,高手指点!!!!
- servlet中出现的HTTP Status 404问题
- 请问各位高手:在一个网页的头代码中,找所有<noscript>到</noscript>的内容的正则式怎么写呀?
- 一个分页问题,马上给分
<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>//以上是源文件
sendMsg.jsp
的代码呢
<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代码
<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代码
<input type="submit" value="发送"/>
这两个“/”是什么呀?????
<%out.println(session.getAttribute("a"));%>:
这句话就危险了
我也不太明白 不过 是null很容易出现异常