资源简介

类似豆瓣的读书讨论系统,可回复收藏书评、书籍,添加好友,查看主页,修改个人信息,发表自己的书评,采用sqlserver2008和myeclipse编写

资源截图

代码片段和文件信息

package action;

import java.io.IOException;
import java.util.Iterator;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet 获得填写的表单数据
 */
@WebServlet(“/replyServlet“)
public class replyServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;
       
    protected void doGet(HttpServletRequest request HttpServletResponse response) throws ServletException IOException {
        request.setCharacterEncoding(“UTF-8“);
        //获取传过来的表单数据根据表单中的name获取所填写的值
        String userName = request.getParameter(“userName“);
        String pwd = request.getParameter(“pwd“);
        String sex = request.getParameter(“sex“);
        String[] hobbys = request.getParameterValues(“hobby“);
        
        System.out.println(userName);
        System.out.println(pwd);
        System.out.println(sex);
        for (int i = 0; hobbys!=null&&i < hobbys.length; i++) {
            System.out.println(hobbys[i]+“\t“);
        }
        
    }

    protected void doPost(HttpServletRequest request HttpServletResponse response) throws ServletException IOException {
        doGet(request response);
        request.getRequestDispatcher(“/test.jsp“).forward(request response);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-07 22:36  书友网\
     文件        1093  2018-06-29 14:34  书友网\.classpath
     文件        1744  2018-07-03 15:19  书友网\.project
     目录           0  2018-07-07 22:36  书友网\.settings\
     文件         564  2018-06-26 21:07  书友网\.settings\.jsdtscope
     文件         364  2018-06-26 21:07  书友网\.settings\org.eclipse.jdt.core.prefs
     文件         486  2018-06-29 14:34  书友网\.settings\org.eclipse.wst.common.component
     文件         414  2018-06-26 21:07  书友网\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-06-26 21:07  书友网\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-06-26 21:07  书友网\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-07-07 22:36  书友网\WebRoot\
     文件         366  2018-07-06 04:08  书友网\WebRoot\Doarticle.jsp
     目录           0  2018-07-07 22:36  书友网\WebRoot\meta-INF\
     文件          39  2018-07-06 04:08  书友网\WebRoot\meta-INF\MANIFEST.MF
     文件       14988  2018-07-06 04:08  书友网\WebRoot\MyJsp.jsp
     文件        1436  2018-07-06 04:08  书友网\WebRoot\OL_evaluation_answer.java
     文件         568  2018-07-06 04:08  书友网\WebRoot\OL_evaluation_collect.java
     文件         639  2018-07-06 04:08  书友网\WebRoot\OL_user_collect.java
     目录           0  2018-07-07 22:36  书友网\WebRoot\WEB-INF\
     文件        9793  2018-07-06 04:08  书友网\WebRoot\WEB-INF\bookDetail.jsp
     目录           0  2018-07-07 22:36  书友网\WebRoot\WEB-INF\classes\
     目录           0  2018-07-07 22:36  书友网\WebRoot\WEB-INF\classes\objectLibrary\
     文件        2494  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_book.class
     文件        2085  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_book_evaluation.class
     文件        1088  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_book_feel.class
     文件        1120  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_communicate.class
     文件        2023  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_evaluation_answer.class
     文件         933  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_evaluation_collect.class
     文件         873  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_friendship.class
     文件        2697  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_user.class
     文件        1141  2018-07-07 15:26  书友网\WebRoot\WEB-INF\classes\objectLibrary\OL_user_collect.class
............此处省略420个文件信息

评论

共有 条评论