2012年1月30日

JSP内置对象response与session 基础知识复习

摘要: 1,response主要用于设置头信息,客户端页面跳转以及Cookie操作。A:设置头信息(包括获取头信息),客户端页面跳转View Code 1 <!--获取所有的头信息--> 2 <%@ page contentType="text/html;charset=GBK"%> 3 <%@ page import="java.util.*"%> 4 <% 5 Enumeration enu=request.getHeaderNames(); 6 while(enu.hasMoreElements()) 7 { 8 阅读全文

posted @ 2012-01-30 00:48 茫然若失 阅读(246) 评论(0) 推荐(0)

JSP基础练习---登录验证

摘要: 1,准备数据View Code 1 create table tUser 2 ( 3 id varchar(20) not null primary key, 4 name varchar(30) not null, 5 password varchar(50) not null 6 ); 7 8 insert into tUser(id,name,password) values('admin','管理员','admin'); 9 insert into tUser(id,name,password) values('guest' 阅读全文

posted @ 2012-01-30 00:19 茫然若失 阅读(572) 评论(0) 推荐(0)

导航