JSP Eclipse科技企业信息管理系统-毕业设计
JSP Eclipse科技企业信息管理系统-毕业设计|计算机专业全套免费毕业设计论文网,以下只贴出部分代码,本系统免费,若想要全部代码请联系站长QQ324114
JSP登录系统界面源代码login.jsp
<meta http-equiv="refresh" content="1;url=default.htm">
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="m" scope="application" class="MD5.MD5"/>
<%
String user_name=new String(request.getParameter("name").getBytes("ISO8859_1"), "GBK");
String user_key=new String(request.getParameter("key").getBytes("ISO8859_1"), "GBK");
String key_confirm=new String(request.getParameter("key_confirm").getBytes("ISO8859_1"), "GBK");
String user_enterprise_name=new String(request.getParameter("enterprise").getBytes("ISO8859_1"), "GBK");
String s="0";
int count=0;
user_key=m.getMD5ofStr(user_key);
try{
Connection con=j.getConnection();
Statement statement=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String checksql="select user_name from user_info where user_name='"+user_name+"'";
ResultSet r=statement.executeQuery(checksql);
while(r.next())
{
count++;
}
if(count!=0)
{
out.print("对不起,该用户名以存在!请重新注册!");
}
else
{
String upsql="insert into user_info (user_name,user_key,user_enterprise_name,s) values ('"+user_name+"','"+user_key+"','"+user_enterprise_name+"','"+s+"')";
statement.executeUpdate(upsql);
}
j.releaseConnection(con);
out.print("注册成功!");
}
catch(SQLException ee){out.print("对不起!和以注册企业名称重复");}
%>
框架JSP源代码frame.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>江宁科技企业信息管理</title>
</head>
<%
if((String)session.getValue("enter")!="wushili")
{response.sendRedirect("default.htm");}
%>
<frameset rows="110,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="NO" noresize >
<frameset cols="160,*" frameborder="NO" border="0" framespacing="0">
<frame src="choice_panel.jsp" name="leftFrame" scrolling="NO" noresize>
<frame src="main.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>