package servlet;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import bean.InsertUpdateDelBean;
public class ApplyServlet extends HttpServlet {
/**
* Constructor of the object.
*/
public ApplyServlet() {
super();
}
/**
* Destruction of the servlet. <br>
*/
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
/**
* The doGet method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
/**
* The doPost method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gb2312");
request.setCharacterEncoding("gb2312");
HttpSession session = request.getSession();
ArrayList userlogin = (ArrayList)session.getAttribute("userlogin");
String name = request.getParameter("name");
String sex = request.getParameter("sex");
String birthday = request.getParameter("birthday");
String idcard = request.getParameter("idcard");
String number = request.getParameter("number");
String nationality = request.getParameter("nationality");
String health = request.getParameter("health");
String familyphone = request.getParameter("familyphone");
String cellphone = request.getParameter("cellphone");
String familyaddress = request.getParameter("familyaddress");
String postalcode = request.getParameter("postalcode");
String email = request.getParameter("email");
String enrolment = request.getParameter("enrolment");
String graduate = request.getParameter("graduate");
String lengthschool = request.getParameter("lengthschool");
String grade = request.getParameter("grade");
String faculty = request.getParameter("faculty");
String specialized = request.getParameter("specialized");
String father = request.getParameter("father");
String fatherid = request.getParameter("fatherid");
String fatworkunit = request.getParameter("fatworkunit");
String fatincome = request.getParameter("fatincome");
String mother = request.getParameter("mother");
String motherid = request.getParameter("motherid");
String motworkunit = request.getParameter("motworkunit");
String motincome = request.getParameter("motincome");
String money = request.getParameter("money");
String repayment = request.getParameter("repayment");
String kind = request.getParameter("kind");
String tuition = request.getParameter("tuition");
String living = request.getParameter("living");
String reason = request.getParameter("reason");
InsertUpdateDelBean ib = new InsertUpdateDelBean();
String sql = "insert into apply(userid,name,sex,birthday,idcard,number,nationality,health,familyphone,cellphone,familyaddress,postalcode,email,enrolment,graduate,lengthschool,grade,faculty,specialized,father,fatherid,fatworkunit,fatincome,mother,motherid,motworkunit,motincome,money,repayment,kind,tuition,living,reason) " +
"values('"+userlogin.get(0)+"','"+name+"','"+sex+"','"+birthday+"','"+idcard+"','"+number+"','"+nationality+"','"+health+"','"+familyphone+"','"+cellphone+"','"+familyaddress+"','"+postalcode+"','"+email+"','"+enrolment+"','"+graduate+"','"+lengthschool+"','"+grade+"','"+faculty+"','"+specialized+"','"+father+"','"+fatherid+"','"+fatworkunit+"','"+fatincome+"','"+mother+"','"+motherid+"','"+motworkunit+"','"+motincome+"','"+money+"','"+repayment+"','"+kind+"','"+tuition+"','"+living+"','"+reason+"')";
ib.insertANDupdateANDdel(sql);
request.setAttribute("message", "申请单提交成功!");
request.getRequestDispatcher("/users/apply.jsp").forward(request, response);
}
/**
* Initialization of the servlet. <br>
*
* @throws ServletException if an error occure
*/
public void init() throws ServletException {
// Put your code here
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
基于Java+JSP的在校大学生贷款管理系统毕业设计实现+源码毕业设计实现+源码.rar
共76个文件
jsp:24个
gif:19个
class:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 109 浏览量
2022-04-21
00:03:22
上传
评论 1
收藏 1.35MB RAR 举报
温馨提示
基于Java+JSP的在校大学生贷款管理系统毕业设计实现+源码毕业设计实现+源码.rar
资源推荐
资源详情
资源评论
收起资源包目录
基于Java+JSP的在校大学生贷款管理系统毕业设计实现+源码毕业设计实现+源码.rar (76个子文件)
174JSP在校大学生贷款管理系统
zxdk_Log.LDF 1024KB
zxdk
src
bean
AdminListBean.java 533B
servlet
AdminLoginServlet.java 3KB
ApplyServlet.java 5KB
DelServlet.java 4KB
util
upload
SmartUploadException.java 150B
Validate.java 2KB
DBConn.java 1KB
.project 1KB
WebRoot
admin
apply_show.jsp 10KB
verify_text.jsp 3KB
top.jsp 2KB
modifypwd.jsp 4KB
bottom.jsp 642B
nogo_text.jsp 2KB
search.jsp 5KB
index.jsp 63B
addadmin.jsp 4KB
adminlist.jsp 3KB
modifyname.jsp 4KB
img
menu13.gif 345B
menu8.gif 351B
menu9.gif 339B
menu15.gif 351B
menu14.gif 343B
menu12.gif 346B
menu3.gif 510B
menu18.gif 1KB
menu10.gif 343B
117367.jpg 270KB
menu7.gif 635B
menu6.gif 1KB
menu17.gif 1KB
menu11.gif 343B
menu19.gif 1KB
menu4.gif 1KB
css.css 2KB
menu1.gif 507B
menu5.gif 1KB
menu2.gif 511B
menu16.gif 1KB
calendar.js 20KB
META-INF
MANIFEST.MF 39B
WEB-INF
FCKeditor.tld 6KB
web.xml 4KB
classes
bean
AdminListBean.class 1020B
servlet
DelServlet.class 3KB
ModifyUserServlet.class 3KB
AdminLoginServlet.class 3KB
ApplyServlet.class 4KB
ModifyAdminServlet.class 4KB
util
upload
SmartFile.class 6KB
DBConn.class 1KB
Validate.class 2KB
lib
mssqlserver.jar 65KB
msbase.jar 280KB
commons-fileupload.jar 22KB
msutil.jar 58KB
mysql-connector-java-5.0.8-bin.jar 528KB
FCKeditor-2.3.jar 18KB
users
userpass.jsp 4KB
users.jsp 3KB
apply_show.jsp 10KB
top.jsp 1KB
flowpath.jsp 2KB
verify.jsp 4KB
reg.jsp 6KB
nogo_show.jsp 2KB
bottom.jsp 647B
apply.jsp 21KB
index.jsp 562B
usertext.jsp 5KB
index.jsp 4KB
.mymetadata 285B
.classpath 802B
.myeclipse
zxdk_Data.MDF 1024KB
共 76 条
- 1
资源评论
- 2301_790102592023-07-12终于找到了超赞的宝藏资源,果断冲冲冲,支持!
智慧安全方案
- 粉丝: 3650
- 资源: 59万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功