看不懂,没有确定在什么地方出错,不清楚怎么解决!其实最重要的是知道程序在哪里执行错误了!找到地方也就好修改了!如果对servlet熟的话,建议查看报告出错的文件,即_0002fjspmysql_0002fadd_0005fok_0002ejspadd_0005fok_jsp_0.java的113行,这个文件是编译后的servlet!
解决方案 »
- MyEclipse下部署并启动tomcat 其他电脑可以访问本机 关闭mye 单纯启动tomcat就不可以
- 什么叫项目部署,项目发布?
- 这是什么错误啊?jdbc中的
- WORK
- jsp 提交 奇怪问题
- 大家好,帮忙解决页面间不能传值的问题~~~~~~~~~~~~~~~~
- jsp 调servlet的问题
- 请问关于jsp,ejb的编辑工具的问题
- javax中的这几个包有谁用过吗,帮忙提供点资料,不胜感激
- java poi在linux上发布有没有问题?
- 目前最新JAVA建站技术是什么,EJB?touque数据库筐架
- 哪里有jbuilder 6或7或8 for linux下载?多谢? (borland网站太慢!)
1,MYSQL驱动有吗?
2,错误好象提示没有数据也
3,看一下MYSQL的连接什么的。
<table align="center" border="0" width="760" cellspacing="0" cellpadding="0" height="355">
<tr>
<td width="150" height="355" valign="top">
</td>
<td width="10" height="100%"></td>
<td width="1" height="100%" ></td>
<td width="10" height="100%"></td>
<td width="589" height="331" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="307">
<tr>
<td>²éÕÒ</font>
</td>
</tr>
<form action="find_ok.jsp" method="post">
<tr><td align="right" height="32" width="40%">(logname)ÐÕÃû£º</td>
<td>
<input type="text" name="logname" value="">
</td>
</tr>
<tr> <td colspan="2" align="center">
<input type="submit" value="²éÕÒ" name="findpass">
</td>
</tr>
</form>
<tr>
<td colspan="2" height="150" align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
find_ok.jsp:
<%!
String logname,email;
boolean loginAttempt = false;
String errorMessage = "";
String idMessage = "";
//logname = request.getParameter("logname");
//logpass = request.getParameter("logpass");%>
<%
if(request.getParameterValues("findpass") != null
&&request.getParameterValues("logname") != null)
{
loginAttempt = true;
}
if (loginAttempt)
{
logname=request.getParameter("logname");
logname=getStr(logname);
String sql="select * from data where logname='"+logname+"'";
//out.println(sql);
ResultSet RS=DBconn.executeQuery(sql);
int rowscount=0;
try
{
while(RS.next())
{
rowscount++;
errorMessage=RS.getString("em");
idMessage=RS.getString("id");
}
}
catch(Exception e)
{ }
if(rowscount!=0)
{
//errorMessage=RS.getString("em");
}else response.sendRedirect("error.htm");
}
%>
<tr><td height="40" >
<font>ÄúµÄem:<%=errorMessage%></font>
<font color=red>Çë¼Çס´Ëid:<%=idMessage%></font>
</td>
</tr>
</table>
Äã¿ÉÒÔ<a href="index.htm">·µ»ØÊ×Ò³</a> <a href="Find.jsp">ÖØвéÕÒ</a> »ò
<form name="form1" method="post" action="del_ok.jsp">
<table width="75%" border="1">
<input type="hidden" name="delid" value="<%=idMessage%>">
<input type="submit" name="Submit" value="ɾ³ý´ËÏî">
</form>
<form name="form2" method="post" action="updata.jsp">
<table width="75%" border="1">
<input type="hidden" name="sid" value="<%=idMessage%>">
<input type="submit" name="Submit" value="¸ü¸Ä´ËÏî">
</form>
</td>
</tr>