资源简介
自己写的代码,本人已完成了S2的答辩,把项目拿出来和网友们分享我的经验,
有不懂的地方可以私聊我
代码片段和文件信息
package com.easybuy.ajax;
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;
import com.easybuy.biz.IEasybuy_userBiz;
import com.easybuy.biz.impl.Easybuy_userBizImpl;
import com.easybuy.entity.Easybuy_user;
public class RegisterServlet extends HttpServlet {
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
this.doPost(request response);
}
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
request.setCharacterEncoding(“UTF-8“);
response.setContentType(“text/html;charset=UTF-8“);
PrintWriter out = response.getWriter();
String userName = request.getParameter(“userName“);
if (userName == null || userName.equals(““)) {
out.print(“用户名不能为空“);
}
IEasybuy_userBiz biz = new Easybuy_userBizImpl();
Easybuy_user user = biz.existName(userName);
if (user == null) {
out.print(““);
} else {
out.print(“该用户名已存在“);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 731 2012-03-03 15:51 易买网\Easybuy\.classpath
文件 295 2012-03-05 00:12 易买网\Easybuy\.myme
文件 1413 2012-03-02 12:38 易买网\Easybuy\.project
文件 500 2012-02-21 18:53 易买网\Easybuy\.settings\.jsdtscope
文件 1040 2012-03-02 12:38 易买网\Easybuy\.settings\com.genuitec.eclipse.j2eedt.core.prefs
文件 330 2012-02-21 18:53 易买网\Easybuy\.settings\org.eclipse.jdt.core.prefs
文件 49 2012-02-21 18:53 易买网\Easybuy\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2012-02-21 18:53 易买网\Easybuy\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 1287 2012-02-23 18:11 易买网\Easybuy\src\com\easybuy\ajax\RegisterServlet.java
文件 2778 2012-02-21 18:54 易买网\Easybuy\src\com\easybuy\ba
文件 691 2012-03-01 16:00 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_commentBiz.java
文件 416 2012-02-28 22:15 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_cosmopolis_dynamicBiz.java
文件 645 2012-03-02 10:11 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_newsBiz.java
文件 835 2012-03-06 12:00 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_orderBiz.java
文件 313 2012-03-05 06:40 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_order_detailBiz.java
文件 1138 2012-03-02 11:17 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_productBiz.java
文件 508 2012-03-01 22:57 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_product_categoryBiz.java
文件 889 2012-03-02 11:44 易买网\Easybuy\src\com\easybuy\biz\IEasybuy_userBiz.java
文件 1044 2012-03-01 16:00 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_commentBizImpl.java
文件 783 2012-02-28 22:16 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_cosmopolis_dynamicBizImpl.java
文件 1055 2012-03-02 10:12 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_newsBizImpl.java
文件 1331 2012-03-06 12:01 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_orderBizImpl.java
文件 604 2012-03-05 06:39 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_order_detailBizImpl.java
文件 1669 2012-03-02 11:18 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_productBizImpl.java
文件 998 2012-03-01 22:57 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_product_categoryBizImpl.java
文件 1344 2012-03-02 11:44 易买网\Easybuy\src\com\easybuy\biz\impl\Easybuy_userBizImpl.java
文件 1219 2012-02-21 18:54 易买网\Easybuy\src\com\easybuy\cart\ShopCart.java
文件 843 2012-02-21 18:54 易买网\Easybuy\src\com\easybuy\cart\ShopItem.java
文件 687 2012-03-01 16:00 易买网\Easybuy\src\com\easybuy\dao\IEasybuy_commentDao.java
文件 413 2012-02-28 22:15 易买网\Easybuy\src\com\easybuy\dao\IEasybuy_cosmopolis_dynamicDao.java
............此处省略667个文件信息
评论
共有 条评论