description The server encountered an internal error () that prevented it from fulfilling this reque
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 1310: "username='"+username+"' and password='"+password+"'";
11: ResultSet rs=rst.getResult(str);//执行SQL语句获得结果集对象
12: session.setAttribute("isLog",new String("0"));//判断用户是否登陆,当isLog的属性为0时,说明用户并没有登陆
13: if(!rs.next())//结果集没有找到所要查找的行
14: {
15: out.println("<script language='javascript'>alert('用户名或密码错误');"+
16: "parent.location.href='login.html';</script>");
11: ResultSet rs=rst.getResult(str);//执行SQL语句获得结果集对象
12: session.setAttribute("isLog",new String("0"));//判断用户是否登陆,当isLog的属性为0时,说明用户并没有登陆
13: if(!rs.next())//结果集没有找到所要查找的行
14: {
15: out.println("<script language='javascript'>alert('用户名或密码错误');"+
16: "parent.location.href='login.html';</script>");
解决方案 »
- itext生成pdf加了iTextAsian.jar还是报“Font 'STSong-Light' with 'UniGB-UCS2-H' is not re“
- 数据库动态列名怎么在快逸报表中显示
- spring采用Annotation实现AOP
- 如何得到第二个结果集
- tomcat下,控件不能正常显示??
- JSP页面获取值
- 请问在JSP里如何最方便取系统时间然后变成一个字符串呀,应该比较简单的问题,急!!在线等!!!
- jsp查询数据库时间段不能显示的问题?
- 怎样实现对一个网页当前有多少人在线进行统计?
- 求助:关于jbpm类似抽查的流程
- 求TXT文件导入JSP页面的思路
- 多线程多用户的系统怎么做?
11: ResultSet rs=rst.getResult(str);//执行SQL语句获得结果集对象
12: session.setAttribute("isLog",new String("0"));//判断用户是否登陆,当isLog的属性为0时,说明用户并没有登陆
13: if(!rs.next())//结果集没有找到所要查找的行
14: {
15: out.println("<script language='javascript'>alert('用户名或密码错误');"+
16: "parent.location.href='login.html';</script>");这是什么错误啊???????
{
public static synchronized Connection getConnection() throws Exception{
try{
//从Context中lookup数据源
Context envCtx=(Context)initCtx.lookup("java:comp/env");
DataSource ds=(DataSource)envCtx.lookup("jdbc/mingri");
return ds.getConnection();
}
catch(SQLException e){
throw e;
}
catch(NamingException e){
throw e;
}
}
}这是我从网上下的一个系统源码 不知道如何配置环境 运行
{
public static synchronized Connection getConnection() throws Exception{
try{
//从Context中lookup数据源
Context envCtx=(Context)initCtx.lookup("java:comp/env");
DataSource ds=(DataSource)envCtx.lookup("jdbc/mingri");
return ds.getConnection();
}
catch(SQLException e){
throw e;
}
catch(NamingException e){
throw e;
}
}
}这是我从网上下的一个系统源码 不知道如何配置环境 运行