文件名称:实践考核类课二 选课系统
文件大小: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