src/com/office/action/MailAction.java
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.office.action;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.office.actionform.LogonForm;
import com.office.actionform.MailForm;
import com.office.dao.Content;
import com.office.dao.DB;
import com.office.tools.Change;
public class MailAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response){
HttpSession session=request.getSession();
LogonForm logonuser=(LogonForm)session.getAttribute("logonuser");
if(logonuser==null){
ActionErrors errors=new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("office.logon.notallow"));
saveErrors(request,errors);
return mapping.findForward("notallowlogon");
}
String mark=mapping.getParameter();
ActionForward forward=new ActionForward();
if(mark.equals("mail_look_get"))
forward=executeMailLookGet(mapping,form,request,response);
if(mark.equals("mail_look_send"))
forward=executeMailLookSend(mapping,form,request,response);
if(mark.equals("mail_add"))
forward=executeMailAdd(mapping,form,request,response);
if(mark.equals("mail_look_sigle"))
forward=executeMailLookSigle(mapping,form,request,response);
if(mark.equals("mail_del"))
forward=executeMailDel(mapping,form,request,response);
return forward;
}
public ActionForward executeMailAdd(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response){
ActionErrors errors=new ActionErrors();
HttpSession session=request.getSession();
session.setAttribute("selectmenu1", "mail");
session.setAttribute("selectmenu2", "mail_send");
MailForm mailform=(MailForm)form;
LogonForm logonuser=(LogonForm)session.getAttribute("logonuser");
String type=request.getParameter("addtype");
if(type==null||type.equals(""))type="link";
if(type.equals("link"))
后面还有 136 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。