实践考核类课二 选课系统

时间:2015-04-15 05:16:54
【文件属性】:

文件名称:实践考核类课二 选课系统

文件大小:6.7MB

文件格式:RAR

更新时间:2015-04-15 05:16:54

东北大学 实践考核类课二 选课系统

东北大学 实践考核类课二 选课系统 public class ChooseClass extends HttpServlet { private static final Log log = LogFactory.getLog(ChooseClass.class); /** * Constructor of the object. */ public ChooseClass() { super(); } /** * Destruction of the servlet.
*/ public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doPost method of the servlet.
* * 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.setContentType("text/html"); PrintWriter out = response.getWriter(); HttpSession session=request.getSession(true); String stuid=(String) session.getAttribute("usr"); String[] list=request.getParameterValues("chooselist"); for(int count=0;count * * @throws ServletException if an error occurs */ public void init() throws ServletException { // Put your code here } }


网友评论

  • 还可以,用到了hebernate框架
  • 感觉不是很好。代码很乱,价值不大。