/**
* 2010 2010-9-26
* Administrator
* userNameVerifyServlet.java
*/
package com.jquery.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author Administrator
*
*/
public class userNameVerifyServlet extends HttpServlet {
/**
* 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 {
this.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.setCharacterEncoding("utf-8");
String userName = request.getParameter("userName");
if (userName.equals("qichechangshuang")) {
String type = request.getParameter("type");
String keyword = request.getParameter("keyword");
if (type.equals("top")) {
} else {
}
} else {
if (userName.equals("aaa")) {
response.getWriter().print("对不起!该用户以被注册!");
} else {
response.getWriter().print("恭喜您!("+userName+")可以被使用注册!");
}
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jquery小型事例项目
共41个文件
jpg:10个
gif:7个
js:6个
1星 需积分: 13 21 下载量 193 浏览量
2010-09-30
11:24:15
上传
评论
收藏 633KB ZIP 举报
温馨提示
这个里面的例子 很适合初学者来体验jquery的强大之处,现在我把这个项目贴出来,和大家一起分享,下载后到各个浏览器上运行都兼容,希望能够帮助到各位!
资源推荐
资源详情
资源评论
收起资源包目录
JQuery.zip (41个子文件)
JQuery
.project 1KB
.settings
.jsdtscope 500B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 291B
WebRoot
editorTable.jsp 1KB
css
chainselect.css 374B
JQueryCss.css 2KB
tabCss.css 1KB
WEB-INF
web.xml 680B
lib
classes
com
jquery
servlet
userNameVerifyServlet.class 2KB
index.jsp 643B
META-INF
MANIFEST.MF 36B
tab.jsp 1KB
chainselect.jsp 1KB
images
expanded.gif 850B
invalid_line.gif 815B
VW_Golf4_rha.jpg 89KB
BMW_316ti_rha.jpg 88KB
BMW_6ercupe_rhb.jpg 39KB
Audi_tt_rhb.jpg 27KB
BMW_316ti_rhb.jpg 86KB
Audi_tt_rha.jpg 29KB
img-loading.gif 8KB
collapsed.gif 847B
BMW_6ercupe_rhc.jpg 39KB
title.gif 862B
BMW_6ercupe_rha.jpg 39KB
Audi_tt_rhc.jpg 28KB
data-loading.gif 11KB
pfeil.gif 112B
VW_Golf4_rhb.jpg 87KB
js
tab.js 2KB
userVerify.js 538B
jquery-1.4.2.js 160KB
chainselect.js 6KB
menu.js 2KB
editorTable.js 2KB
menu.jsp 2KB
.myeclipse
src
com
jquery
servlet
userNameVerifyServlet.java 2KB
.classpath 362B
共 41 条
- 1
资源评论
- manyone2012-10-29不是一个完整的项目!!!!
liwu556677
- 粉丝: 54
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功