【JSP开源代码栏目提醒】:网学会员JSP开源代码为您提供subfav.jsp参考,解决您在subfav.jsp学习中工作中的难题,参考学习。
<%@ page session="true" %>
<%@page pageEncoding="GB2312"%>
<%@page contentType="text/html; charset=gb2312"%>
<%request.setCharacterEncoding("GB2312");%>
<%@ include file="incdb.jsp"%>
<jsp:useBean id="user" class="twm.bbsuser" scope="page"/>
<jsp:useBean id="bbs" class="twm.bbs" scope="page"/>
<%
String whereTo,tempSTR;
int bbsid,boardid;
String username;
boardid=0;
tempSTR=request.getParameter("bbsid");
if (tempSTR==null) {bbsid=0;}
else {bbsid=java.lang.Integer.parseInt(tempSTR);}
tempSTR=null;
tempSTR=(String)session.getValue("superlogin");
if ((tempSTR!="true")||(bbsid==0)) {
whereTo="about.jsp";
}else { //'从精华区删除
if (bbs.getBbsInfo(bbsid)) {
username=bbs.getBbsUsername();
boardid=bbs.getBbsBoardid();
user.changeUserClass(username,-3);//'发表人-3分
bbs.setBbsNohot(bbsid);//'从精华区删除
} //' end if
whereTo="bbslist.jsp?method=8&boardid="+boardid;
} //'end if%>
<jsp:forward page='<%=whereTo%>'/>
上一篇:
subDictionaryList.jsp
下一篇:
法律专业开题报告范文