⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myforum.java

📁 反ajax原代码
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   MyForum.java

package com.laoer.bbscs.web.action;

import com.laoer.bbscs.bean.Boards;
import com.laoer.bbscs.business.IForumService;
import com.laoer.bbscs.sys.Constant;
import com.laoer.bbscs.sys.Pages;
import com.laoer.bbscs.web.form.ForumForm;
import com.laoer.bbscs.web.form.SearchPostForm;
import com.laoer.bbscs.web.servlet.UserCheck;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;

// Referenced classes of package com.laoer.bbscs.web.action:
//            BaseAction

public class MyForum extends BaseAction
{

    public MyForum()
    {
    }

    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
    {
        ActionErrors errors = new ActionErrors();
        ForumForm form = (ForumForm)actionForm;
        UserCheck uc = getUserCheck(httpServletRequest, httpServletResponse, form.getBid());
        if(uc.getBs() == null)
        {
            errors.add("error.baordsno", new ActionError("error.baordsno"));
            saveErrors(httpServletRequest, errors);
            return actionMapping.findForward("error");
        }
        if(uc.getBs().getAttrib5() == 0)
        {
            errors.add("error.forum.canontread", new ActionError("error.forum.canontread"));
            saveErrors(httpServletRequest, errors);
            return actionMapping.findForward("error");
        }
        Pages pages = new Pages(httpServletRequest);
        pages.setPage(form.getPage());
        pages.setPerPageNum(uc.getFormPerNum());
        pages.setFileName("forum" + Constant.FILEPREFIX + "?bid=" + form.getBid());
        pages.setStyle(3);
        if(form.getT() > 0)
            pages.setTotals(form.getT());
        com.laoer.bbscs.sys.PageList pl = getForumService().getForumMainList(form.getBid(), pages);
        httpServletRequest.setAttribute("pl", pl);
        httpServletRequest.setAttribute("uc", uc);
        httpServletRequest.setAttribute("pages", String.valueOf(form.getPage()));
        SearchPostForm searchPostForm = new SearchPostForm();
        searchPostForm.setBid(form.getBid());
        httpServletRequest.setAttribute("searchPostForm", searchPostForm);
        return actionMapping.findForward("forum");
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -