package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class viewdetails_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/header.html");
_jspx_dependants.add("/bottom.jsp");
}
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
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;
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta content=\"text/html;charset=gb2312\" />\n");
out.write(" <title></title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <center><b><font color=\"red\" size=\"+6\" face=\"\">Êé¼®ÐÇϵ</font></b></center>\n");
out.write(" </body>\n");
out.write("</html>\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>\r\n");
out.write("²é¿´ÏêϸÐÅÏ¢\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<h3>\r\n");
out.write("²é¿´Óû§ÐÅÏ¢\r\n");
out.write("</h3>\r\n");
String userid=(String)session.getAttribute("userid");
String password=null;
String firstname=null;
String lastname=null;
String age=null;
String gender=null;
String email=null;
out.write('\r');
out.write('\n');
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("Jdbc:Odbc:dlc","sa","sa");
PreparedStatement s=con.prepareStatement("Select * from Customers where UserId = ?");
s.setString(1,userid);
ResultSet rs=s.executeQuery();
while(rs.next())
{
userid=rs.getString(1).trim();
password=rs.getString(2).trim();
firstname=rs.getString(3).trim();
lastname=rs.getString(4).trim();
gender=rs.getString(5).trim();
age=rs.getString(6).trim();
email=rs.getString(7).trim();
}
}
catch(Exception e)
{
e.printStackTrace();
}
out.write("\r\n");
out.write("<form action=\"updatedetails.jsp\" method=\"POST\">\r\n");
out.write(" <table>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b> Óû§ Id£º</b></td>\r\n");
out.write(" <td>");
out.print(userid);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>ÃÜÂ룺</b></td>\r\n");
out.write(" <td>");
out.print(password);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>Ãû×Ö£º</b></td>\r\n");
out.write(" <td>");
out.print(firstname);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>ÐÕÊÏ£º</b></td>\r\n");
out.write(" <td>");
out.print(lastname);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>ÐÔ±ð£º</b></td>\r\n");
out.write(" <td>");
out.print(gender);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>ÄêÁ䣺</b></td>\r\n");
out.write(" <td>");
out.print(age);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>µç×ÓÓʼþ£º</b></td>\r\n");
out.write(" <td>");
out.print(email);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td></td>\r\n");
out.write(" <td><input type=\"submit\" value=\"ÐÞ¸ÄÓû§ÐÅÏ¢\"/></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <br />\r\n");
out.write(" ");
out.write("<fieldset>\r\n");
out.write("<legend><b>Á´½Ó</b></legend>\r\n");
out.write("<b>µ¥»÷´ËÁ´½Ó²é¿´ <a href=\"/JspModule/controllerservlet?page=viewdetails\">¿Í»§ÐÅÏ¢</a><br/>\r\n");
out.write("<b>µ¥»÷´ËÁ´½Ó²é¿´<a href=\"/JspModule/controllerservlet?page=productdetails\">²úÆ·ÐÅÏ¢</a><br/>\r\n");
out.write("<b>µ¥»÷´ËÁ´½Ó²é¿´<a href=\"/JspModule/controllerservlet?page=orderdetails\">¶©µ¥ÐÅÏ¢</a><br />\r\n");
out.write("<b>Í˳öµÇ¼²¢×ªÖÁ<a href=\"index.html\">Ö÷Ò³</a><br />\r\n");
out.write("</fieldset>\r\n");
out.write("\r\n");
out.write("</form>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\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);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jsp复习题.rar
共309个文件
class:85个
java:72个
jsp:29个
需积分: 10 21 下载量 130 浏览量
2008-01-09
21:54:41
上传
评论 1
收藏 2.35MB RAR 举报
温馨提示
jsp复习题.rar S2
资源详情
资源评论
资源推荐
收起资源包目录
jsp复习题.rar (309个子文件)
updatedetails_jsp.class 7KB
viewdetails_jsp.class 7KB
viewproduct_jsp.class 7KB
productdetails_jsp.class 7KB
orderdetails_jsp.class 7KB
index_jsp.class 6KB
updatedetails_jsp.class 6KB
updatecustomers_jsp.class 6KB
viewproduct_jsp.class 6KB
viewdetails_jsp.class 6KB
CustomerDetails_jsp.class 6KB
loginvalidator_jsp.class 6KB
productdetails_jsp.class 6KB
index_jsp.class 6KB
orderdetails_jsp.class 6KB
cancelorder_jsp.class 6KB
customerregistration_jsp.class 6KB
updatecustomers_jsp.class 5KB
jsp1_jsp.class 5KB
loginvalidator_jsp.class 5KB
login_jsp.class 5KB
showInfo_jsp.class 5KB
cancelorder_jsp.class 5KB
orderproduct_jsp.class 5KB
CustomerDetails_jsp.class 5KB
jsp1_jsp.class 5KB
customerregistration_jsp.class 5KB
jsp1_jsp.class 5KB
jsp1_jsp.class 5KB
jsp2_jsp.class 5KB
orderproduct_jsp.class 4KB
showInfo_jsp.class 4KB
login_jsp.class 4KB
jsp2_jsp.class 4KB
jsp1_jsp.class 4KB
jsp1_jsp.class 4KB
Servlet1.class 4KB
Servlet1.class 4KB
CustomerBean.class 4KB
CustomerBean.class 4KB
jsp1_jsp.class 4KB
jsp3_jsp.class 4KB
jsp1_jsp.class 3KB
jsp1_jsp.class 3KB
Servlet1.class 3KB
Servlet1.class 3KB
jsp1_jsp.class 3KB
jsp3_jsp.class 3KB
jsp1_jsp.class 3KB
sim_jsp.class 3KB
jsp2_jsp.class 3KB
simple_jsp.class 3KB
bottom_jsp.class 3KB
empty_jsp.class 3KB
jsp1_jsp.class 3KB
jsp1_jsp.class 3KB
jsp1_jsp.class 3KB
Servlet1.class 3KB
Servlet1.class 3KB
sim_jsp.class 3KB
jsp2_jsp.class 3KB
simple_jsp.class 3KB
empty_jsp.class 3KB
jsp2_jsp.class 3KB
jsp1_jsp.class 3KB
Shopping.class 3KB
Shopping.class 3KB
Servlet1.class 2KB
Servlet1.class 2KB
Servlet1.class 2KB
Servlet1.class 2KB
DataCon.class 2KB
DataCon.class 2KB
SimpleFilter.class 2KB
SimpleFilter.class 2KB
Servlet1.class 2KB
Servlet1.class 2KB
ControllerServlet.class 1KB
ControllerServlet.class 1KB
Book.class 1KB
Book.class 1KB
Bean1.class 911B
Bean1.class 911B
Bean1.class 896B
Bean1.class 896B
org.apache.jsp.dep2 37KB
org.apache.jsp.dep2 10KB
org.apache.jsp.dep2 7KB
org.apache.jsp.dep2 6KB
org.apache.jsp.dep2 5KB
testproject.dep2 4KB
org.apache.jsp.dep2 3KB
customermanagement.dep2 3KB
org.apache.jsp.dep2 3KB
untitled1.dep2 2KB
学员成绩单.dep2 2KB
添加更新库存.dep2 2KB
书本信息.dep2 2KB
org.apache.jsp.dep2 2KB
org.apache.jsp.dep2 2KB
共 309 条
- 1
- 2
- 3
- 4
tong275056839
- 粉丝: 4
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0