package org.apache.jsp.user;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class register_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List<String> _jspx_dependants;
private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;
public java.util.List<String> getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("\n");
out.write("\n");
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
out.write('\n');
String notice=(String)request.getAttribute("notice");
out.write("\n");
out.write("<!DOCTYPE html>\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <base href=\"");
out.print(basePath);
out.write("\">\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
out.write(" <title>注册</title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <center> \n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../com/top.jsp", out, false);
out.write("\n");
out.write(" <br>\n");
out.write(" <h1>注册</h1>\n");
out.write(" <table border='1' cellspacing='5' cellpadding='5' bordercolor=\"green\" style='border-collapse:collapse;table-layout: fixed'>\n");
out.write(" <form action=\"RegisterServlet\">\n");
out.write(" ");
if(notice!=null){
out.write("\n");
out.write(" <p style=\"color: red\">");
out.print(notice);
out.write("</p>\n");
out.write(" ");
}
out.write("\n");
out.write(" <tr><td>用户名:</td><td><input type=\"text\" name=\"username\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>密码 :</td><td><input type=\"password\" name=\"password1\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>确认密码 :</td><td><input type=\"password\" name=\"password2\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>邮箱 :</td><td><input type=\"text\" name=\"email\" size=\"50\"></td></tr>\n");
out.write(" <tr>\n");
out.write(" <td>\n");
out.write(" 性别:<input type=\"radio\" name=\"gender\" value=\"男\"/>男\n");
out.write(" <input type=\"radio\" name=\"gender\" value=\"女\"/>女\n");
out.write(" </td>\n");
out.write(" </tr>\n");
out.write(" <tr><td>出生日期:</td><td><input type=\"text\" name=\"birthday\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>住址:</td><td><input type=\"text\" name=\"address\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>电话:</td><td><input type=\"text\" name=\"phone\" size=\"50\"></td></tr>\n");
out.write(" <tr><td>个人说明:<textarea name=\"personnal\" rows=\"6\" cols=\"50\"></textarea></td></tr>\n");
out.write(" <tr><td align=\"center\"><input type=\"submit\" value=\"注册\"> <input type=\"reset\" value=\"重置\"></td></tr>\n");
out.write(" </form>\n");
out.write(" </table>\n");
out.write(" <br><br><br><br>\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../com/bootom.jsp", out, false);
out.write("\n");
out.write(" </center>\n");
out.write(" </body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
mvc 实现登录注册+数据库
共58个文件
jsp:14个
java:11个
class:11个
5星 · 超过95%的资源 需积分: 42 41 下载量 23 浏览量
2018-12-18
11:35:43
上传
评论 8
收藏 1.06MB ZIP 举报
温馨提示
新手学习Java web。
资源推荐
资源详情
资源评论
收起资源包目录
案例4 登录注册.zip (58个子文件)
案例4 登录注册
src
conf
MANIFEST.MF 25B
java
db
DatabaseAccess.java 2KB
user
UserBean.java 3KB
LoginServlet.java 3KB
RegisterServlet.java 4KB
UserDAO.java 4KB
web
WEB-INF
lib
mysql-connector-java-5.0.7.jar 524KB
META-INF
context.xml 67B
com
top.jsp 1KB
bootom.jsp 345B
user
login.jsp 1KB
register.jsp 2KB
show.jsp 1KB
welcome.jsp 554B
build
generated
src
org
apache
jsp
com
top_jsp.java 4KB
top_jsp.class.smap 167B
user
show_jsp.java 4KB
show_jsp.class.smap 133B
register_jsp.java 5KB
register_jsp.class.smap 176B
welcome_jsp.java 3KB
login_jsp.java 4KB
login_jsp.class.smap 164B
welcome_jsp.class.smap 114B
common
top_jsp.java 4KB
top_jsp.class.smap 170B
classes
org
apache
jsp
com
top_jsp.class 5KB
user
show_jsp.class 6KB
login_jsp.class 6KB
welcome_jsp.class 4KB
register_jsp.class 7KB
common
top_jsp.class 5KB
web
WEB-INF
lib
mysql-connector-java-5.0.7.jar 524KB
classes
.netbeans_update_resources 0B
db
DatabaseAccess.class 2KB
user
UserBean.class 2KB
LoginServlet.class 2KB
UserDAO.class 4KB
RegisterServlet.class 3KB
util
.netbeans_automatic_build 0B
META-INF
context.xml 67B
MANIFEST.MF 25B
com
top.jsp 1KB
bootom.jsp 345B
user
login.jsp 1KB
register.jsp 2KB
show.jsp 1KB
welcome.jsp 554B
common
top.jsp 1KB
bootom.jsp 423B
generated-sources
ap-source-output
empty
build.xml 3KB
nbproject
build-impl.xml 79KB
private
private.xml 2KB
private.properties 580B
ant-deploy.xml 4KB
project.properties 4KB
project.xml 669B
genfiles.properties 473B
共 58 条
- 1
资源评论
- 陌陌的日记2023-07-27这份文件帮助我更好地理解了MVC模式在实际项目中的应用。
- 陈后主2023-07-27这个文件很实用,清晰地介绍了如何使用MVC架构实现登录注册功能。
- 顾露2023-07-27文档中的示例代码简洁明了,容易理解和应用。
- 西门镜湖2023-07-27虽然介绍的是基础功能,但是内容详实,对初学者来说非常友好。
- Msura2023-07-27作者对数据库的运用很熟练,提供了实现登录注册的有效方法。
weixin_44151029
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功