ReceiveMail.java.svn-base
上传用户:liangcc
上传日期:2019-05-24
资源大小:4412k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

Java

  1. package com.softeem.webmail.receive;
  2. import java.io.IOException;
  3. import javax.servlet.ServletException;
  4. import javax.servlet.http.HttpServlet;
  5. import javax.servlet.http.HttpServletRequest;
  6. import javax.servlet.http.HttpServletResponse;
  7. import com.softeem.webmail.beans.receive.User;
  8. import com.softeem.webmail.dao.receive.getUserInfo;
  9. public class ReceiveMail extends HttpServlet {
  10. public void doGet(HttpServletRequest request, HttpServletResponse response)
  11. throws ServletException, IOException {
  12. doPost(request, response);
  13. }
  14. public void doPost(HttpServletRequest request, HttpServletResponse response)
  15. throws ServletException, IOException {
  16. User user=(User) request.getSession(false).getAttribute("user");
  17. String username=user.getUsername();
  18. User myuser=getUserInfo.getInfo(username);
  19. }
  20. }