modify_link.jsp~2~
来自「一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.」· JSP~2~ 代码 · 共 30 行
JSP~2~
30 行
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.Link" %>
<%@ page import="com.bwm.core.*" %>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<%
if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;
session.removeAttribute("error");
session.removeAttribute("success");
String action =request.getParameter("action").toString();
String title=ParamUtils.getRequestString(request,"name");
String content=ParamUtils.getRequestString(request,"url");
int aid=ParamUtils.getIntParameter(request,"aid");
BasetableFactory bf=BasetableFactory.getInstance();
if(action==null||"".equals(action)){
return;
}else if("add".equals(action)&&bf.CreateAffiche(request)){
response.sendRedirect("manage_affiche.jsp");
}else if("del".equals(action)&&bf.DeleteAffiche("WHERE aid="+aid)){
response.sendRedirect("manage_affiche.jsp");
}else if("modify".equals(action)){
Affiche a=bf.SearchAffiche("WHERE aid="+aid);
a.setTitle(title);
a.setContent(content);
response.sendRedirect("manage_affiche.jsp");
}else{
session.setAttribute("error","在公告信息中操作失败");
response.sendRedirect("error.jsp");
}
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?