本帖最后由 一步步 于 2013-11-7 09:52 编辑
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
UserDaoJdbcImpl UI=new UserDaoJdbcImpl();
UI.addOneUser(username) ;
UI.login(password) ;
%>
这段代码中 UI.addOneUser(username) ;
UI.login(password) ; 这两句总显示An error occurred at line: 16 in the jsp file: /zs.jsp错误是帮我解答一下啊
具体代码
:
<%@ page language="java" import="java.util.*,com.aptech.jb.dao.jdbcimpl. UserDaoJdbcImpl,com.aptech.jb.entity.USER,com.aptech.jb.dao.UserDao,java.sql.SQLException" pageEncoding="gbk" %>
<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<head> </head> <% String username = request.getParameter("username"); String password = request.getParameter("password"); UserDaoJdbcImpl UI=new UserDaoJdbcImpl(); UI.addOneUser(username) ; UI.login(password) ; %> <tr> <td><a href="in.jsp">注册成功</a></td> </tr> <body> </body></html>
|