📄 _cateadmin__jsp.java
字号:
// \u4fee\u6539\u540d\u79f0
o_cate.setCateId(cateid);
// System.out.println(cateid+","+sTitle);
o_cate.UpdateCategory();
out.println("\u4fee\u6539\u6210\u529f!");
}
}catch (Exception e) {
System.err.println("Exception class: " + e);
e.printStackTrace();
out.println("\u540d\u79f0\u91cd\u590d\u6216\u5176\u5b83\u539f\u56e0,\u4fee\u6539\u5931\u8d25!<p>");
}
}
if(sflag.equals("delete")&&sTitle!=null)
{
try{
//\u5220\u9664\u540d\u79f0
o_cate.setCateId(cateid);
o_cate.DeleteCategory();
out.println("\u5220\u9664\u6210\u529f!");
}
catch (Exception e) {
System.err.println("Exception class: " + e);
e.printStackTrace();
out.println("\u540d\u79f0\u91cd\u590d\u6216\u5176\u5b83\u539f\u56e0,\u4fee\u6539\u5931\u8d25!<p>");
}
}
out.write(_jsp_string1, 0, _jsp_string1.length);
try{
// \u53d6\u5f97\u7c7b\u522b\u7684\u6240\u6709\u6570\u636e
Categories o_Category = new Categories();
//\u4f7f\u7528Vector\u63a5\u6536\u5230\u7c7b\u522b\u540d\u79f0
v_cate = o_Category.getMoreCategories();
out.write(_jsp_string3, 0, _jsp_string3.length);
// \u6267\u884c\u5faa\u73af\u8bed\u53e5\uff0c\u53d6\u51faVector\u4e2d\u7684\u6240\u6709\u8bb0\u5f55
for(int i=0;i<v_cate.size();i++)
{
// \u5b9a\u4e49Vector\u4e2d\u6bcf\u6761\u8bb0\u5f55\u4e3a\u4e00\u4e2a\u5bf9\u8c61\uff0c\u518d\u53d6\u5b83\u7684\u5c5e\u6027\u503c
o_Category = (Categories)v_cate.elementAt(i);
Ucateid = o_Category.getCateId();
showname = o_Category.getCateTitle(); // \u4fe1\u606f\u540d\u79f0
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print((showname));
out.write(_jsp_string5, 0, _jsp_string5.length);
out.print((showname));
out.write(_jsp_string6, 0, _jsp_string6.length);
out.print((Ucateid));
out.write(_jsp_string7, 0, _jsp_string7.length);
out.print((Ucateid));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((showname));
out.write(_jsp_string9, 0, _jsp_string9.length);
}
}catch(Exception e)
{throw new Exception(e.getMessage());}
out.write(_jsp_string10, 0, _jsp_string10.length);
// \u5982\u679c\u4e3a\u4fee\u6539\u548c\u6dfb\u52a0\u64cd\u4f5c\uff0c\u5219\u5206\u522b\u663e\u793a\u4e0b\u9762\u7684\u5185\u5bb9
if(sflag.equals("update")){
out.write(_jsp_string11, 0, _jsp_string11.length);
out.print((cateid));
out.write(_jsp_string12, 0, _jsp_string12.length);
out.print((sTitle));
out.write(_jsp_string13, 0, _jsp_string13.length);
}else{
out.write(_jsp_string14, 0, _jsp_string14.length);
out.print((cateid));
out.write(_jsp_string15, 0, _jsp_string15.length);
}
out.write(_jsp_string16, 0, _jsp_string16.length);
}
else
out.println("\u4f60\u6ca1\u6709\u7ba1\u7406\u5458\u7684\u6743\u9650");
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
com.caucho.jsp.QJspFactory.freePageContext(pageContext);
}
}
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public java.util.ArrayList _caucho_getDependList()
{
return _caucho_depends;
}
public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
{
super._caucho_addDepend(depend);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.server.util.CauchoSystem.getVersionId() != 5022137076587403036L)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Dependency depend;
depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
{
return _jsp_functionMap;
}
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
com.caucho.server.webapp.WebApp webApp
= (com.caucho.server.webapp.WebApp) config.getServletContext();
com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
com.caucho.loader.DynamicClassLoader loader;
loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
String resourcePath = loader.getResourcePathSpecificFirst();
mergePath.addClassPath(resourcePath);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news/admin/cateAdmin.jsp"), -3127525251254287641L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
depend = new com.caucho.vfs.Depend(appDir.lookup("news/admin/NewsComm.jsp"), 7147789067385854643L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
private final static char []_jsp_string0;
private final static char []_jsp_string11;
private final static char []_jsp_string4;
private final static char []_jsp_string6;
private final static char []_jsp_string7;
private final static char []_jsp_string3;
private final static char []_jsp_string8;
private final static char []_jsp_string2;
private final static char []_jsp_string1;
private final static char []_jsp_string10;
private final static char []_jsp_string16;
private final static char []_jsp_string13;
private final static char []_jsp_string14;
private final static char []_jsp_string12;
private final static char []_jsp_string9;
private final static char []_jsp_string15;
private final static char []_jsp_string5;
static {
_jsp_string0 = " \r\n\r\n\r\n".toCharArray();
_jsp_string11 = "\r\n <form name=\"UFrom\" method=\"post\" action=\"cateAdmin.jsp?cid=".toCharArray();
_jsp_string4 = "\r\n<tr>\r\n<td>".toCharArray();
_jsp_string6 = "&cid=".toCharArray();
_jsp_string7 = "\">\u4fee\u6539</a></td>\r\n<td align=\"center\"><a href=\"cateAdmin.jsp?flag=delete&cid=".toCharArray();
_jsp_string3 = "\r\n<p><center><h3>\u4fe1\u606f\u5206\u7c7b\u8bbe\u7f6e</h3></center></p>\r\n<table border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bordercolorlight=\"#000080\" bordercolordark=\"#FFFFFF\" bordercolor=\"#000080\" style=\"margin-top: 3; margin-bottom: 3\">\r\n<tr>\r\n<td width=\"60%\" bgcolor=\"#CCFFCC\">\u540d\u79f0</td>\r\n<td width=\"20%\" align=\"center\" bgcolor=\"#CCFFCC\">\u4fee\u6539</td>\r\n<td width=\"20%\" align=\"center\" bgcolor=\"#CCFFCC\">\u5220\u9664</td>\r\n</tr>\r\n".toCharArray();
_jsp_string8 = "&title=".toCharArray();
_jsp_string2 = "\r\n\r\n\r\n<html>\r\n<head>\r\n<link rel=\"stylesheet\" href=\"../style.css\">\r\n<title>\u57fa\u672c\u8bbe\u7f6e</title>\r\n</head>\r\n<script language=\"javascript\">\r\n\r\nfunction DeleteName(){\r\n if (confirm(\"\u771f\u7684\u8981\u5220\u9664\u6b64\u540d\u79f0\u5417\uff1f\")){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n}\r\n</script>\r\n<body>\r\n".toCharArray();
_jsp_string1 = "\r\n".toCharArray();
_jsp_string10 = "\r\n</table>\r\n".toCharArray();
_jsp_string16 = "\r\n</form>\r\n</body>\r\n</html>\r\n".toCharArray();
_jsp_string13 = "\">\r\n <input type=\"submit\" name=\"Submit\" value=\" \u4fee \u6539 \">\r\n </div>\r\n </form>\r\n".toCharArray();
_jsp_string14 = "\r\n <form name=\"AForm\" method=\"post\" action=\"cateAdmin.jsp?cid=".toCharArray();
_jsp_string12 = "&flag=updateok\">\r\n <div align=\"center\">\r\n <font color=\"#FFFFFF\"><b><font color=\"#000000\">\u540d\u79f0</font></b></font> \r\n <input type=\"text\" name=\"title\" size=\"20\" value=\"".toCharArray();
_jsp_string9 = "\" onclick=\"return DeleteName()\">\u5220\u9664</a></td>\r\n</tr>\r\n".toCharArray();
_jsp_string15 = "&flag=add\">\r\n <div align=\"center\">\r\n <font color=\"#FFFFFF\"><b><font color=\"#000000\">\u540d\u79f0</font></b></font> \r\n <input type=\"text\" name=\"title\" size=\"20\">\r\n <input type=\"submit\" name=\"Submit\" value=\" \u6dfb \u52a0 \">\r\n </div>\r\n </form>\r\n".toCharArray();
_jsp_string5 = "</td>\r\n<td align=\"center\"><a href=\"cateAdmin.jsp?flag=update&title=".toCharArray();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -