基于jsp设计的教务系统中的学生信息管理系统课程报告(编辑修改稿)内容摘要:

html head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学生信息管理首页 name=submit/form centerfont color=blue size =20 b学生信息管理 /b/font/center jsp:include page =/ /head body background=brcenterstrong第一步: /strong form action= method=post name=form 输入要修改信息的学生号 :Input type = text name =numbers brbrInput type =submit value =确认修改 name=submit /form /body /html %@ page language=java contentType=text/html。 charset=GB2312 pageEncoding=GB2312% %@ page import=.* % html head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学生信息管理首页 name=submit/form centerfont color=blue size =20 b学生信息管理 /b/font/center jsp:include page =/ /head body background=fontcenter % int n=0。 String number1 = (numbers)。 (number,number1)。 Connection con。 Statement sql。 ResultSet rs。 try{ ()。 } catch(Exception e){} try { String uri= jdbc: String user=root。 String password=123456。 con=(uri,user,password)。 sql=()。 rs=(SELECT * FROM student)。 while(()){ String SQLnumber =(number)。 if((SQLnumber)==0) { n=1。 break。 } } ()。 if(n==1) { % jsp:forward page = / % } else { (br+你输入的学生号不存在 )。 } } catch(SQLException e) { (e)。 } % brform action= method=post name=form Input type =submit value =返回 name=submit/form /center/font/body/html %@ page language=java contentType=text/html。 charset=GB2312 pageEncoding=GB2312% html head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学生信息管理首页 name=submit/form centerfont color=blue size =20 b学生信息管理 /b/font/center jsp:include page =/ /head body background=brcenterstrong第二步: /strong FORM action= method=post table border=1 trtd输入新的姓名: /tdtdInput type=text name=name/td/tr trtd输入新的性别: /tdtdInput type=text name=sex/td/tr trtd输入新的出生日期: /tdtdInput type=text name=date/td/tr trtd输入新的班级: /tdtdInput type=text name=class/td/tr trtd输入新的民族: /tdtdInput type=text name=minzu/td/tr trtd输入新的联系方式: /tdtdInput type=text name=phone/td/tr trtd输入新的政治面貌: /tdtdInput type=text name=zzmm/td/tr trtd输入新的家庭住址: /tdtdInput type=text name=address/td/tr trtd输入新的专业: /tdtdInput type=text name=zhuanye/td/tr /table BRInput type=submit name=b value=提交更新 /center /FORM /body/html %@ page language=java contentType=text/html。 charset=GB2312 pageEncoding=GB2312% html head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学生信息管理首页 name=submit/form centerfont color=blue size =20 b学生信息管理 /b/font/center jsp:include page =/ /head body background=brcenterstrong不要输入重复的学生号: /strong FORM action= method=post table border=1 trtd输入新的学生号: /tdtdInput type=text name=number/td/tr trtd输入新的姓名: /tdtdInput type=text name=name/td/tr trtd输入新的性别: /tdtdInput type=text name=sex/td/tr trtd输入新的出生日期: /tdtdInput type=text name=date/td/tr trtd输入新的班级: /tdtdInput type=text name=class/td/tr trtd输入新的民族: /tdtdInput type=text name=minzu/td/tr trtd输入新的联系方式: /tdtdInput type=text name=phone/td/tr trtd输入新的政治面貌: /tdtdInput type=text name=zzmm/td/tr trtd输入新的家庭住址: /tdtdInput type=text name=address/td/tr trtd输入新的专业: /tdtdInput type=text name=zhuanye/td/tr /table BRInput type=submit name=b value=确认添加 /FORM/body/html %@ page contentType=text/html。 charset=GB2312 % %@ taglib tagdir=/WEBINF/tags prefix=inquire% %@ taglib tagdir=/WEBINF/tags prefix=renew% HTML head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学生信息管理首页 name=submit/form centerfont color=blue size =20 b学生信息管理 /b/font/center /head body background=Font size=3 % String nu =(number)。 (number3,nu)。 String na=(name)。 byte a[]=(ISO88591)。 na=new String(a)。 String se=(sex)。 String da=(date)。 String cl=(class)。 String mi=(minzu)。 String ph=(phone)。 String zz=(zzmm)。 String ad=(address)。 String zh=(zhuanye)。 byte bb[]=(iso88591)。 se=new String(bb)。 byte cc[]=(iso88591)。 mi=new String(cc)。 byte dd[]=(iso88591)。 zz=new String(dd)。 byte ee[]=(iso88591)。 ad=new String(ee)。 byte ff[]=(iso88591)。 zh=new String(ff)。 % inquire:AddRecord number=%=nu% name=%=na% sex=%=se% date=%=da% clas=%=cl% minzu=%=mi% phone=%=ph% zzmm=%=zz% address=%=ad% zhuanye=%=zh%/ br信息已添加。 renew:NumberConditon number=%=nu% / BR添加的信息为 : BRcenter%=queryResultByNumber%brform action= method=post name=form Input type =submit value =返回 name=submit/form/center /Font/BODY/HTML %@ page language=java contentType=text/html。 charset=GB2312 pageEncoding=GB2312% html head meta equiv=ContentType content=text/html。 charset=gb2312 form action= method=post name=formInput type =submit value =学 生信息管理首页 name=submit/form centerfont color=blue size。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。