📄 _news_0del__jsp.java
字号:
/*
* JSP generated by Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)
*/
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
public class _news_0del__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html; charset=GBK");
request.setCharacterEncoding("GBK");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
sk.newsBean news_del;
news_del = (sk.newsBean) pageContext.getAttribute("news_del");
if (news_del == null) {
news_del = new sk.newsBean();
pageContext.setAttribute("news_del", news_del);
}
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
String bianji="bj";
String shichang="sc";
String admin="zh";
if(session.getValue("type").toString().equals(bianji)||session.getValue("type").toString().equals(shichang)||session.getValue("type").toString().equals("admin"))
;
else response.sendRedirect("login.htm");
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
int i=0;
int pagesize=10,ptr,intpage,pagecount;
String strpage=request.getParameter("page");
if(strpage==null)
intpage=1;
else
intpage=Integer.parseInt(strpage);
java.sql.ResultSet rs=null;
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
news_del.getSkdb1().getDatabase1().openConnection();
news_del.getSkdb1().getNews().executeQuery();
news_del.getSkdb1().getNews().first();
pagecount=news_del.getSkdb1().getNews().rowCount()/pagesize+1;
ptr=(intpage-1)*pagesize;
news_del.getSkdb1().getNews().goToRow(ptr);
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
while(i<pagesize)
{
if(i%2==0)
out.println("<tr bgcolor=pink>");
else
out.println("<tr bgcolor>");
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
out.print((news_del.getSkdb1().getNews().getInt("id")));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print((news_del.getSkdb1().getNews().getString("Title")));
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
if(news_del.getSkdb1().getNews().getBoolean("State"))
out.println("yes");
else out.println("no");
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((news_del.getSkdb1().getNews().getInt("id")));
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
out.print((news_del.getSkdb1().getNews().getInt("id")));
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
if(news_del.getSkdb1().getNews().atLast())
break;
news_del.getSkdb1().getNews().next();
i++;
}
pageContext.write(_jsp_string10, 0, _jsp_string10.length);
out.print((intpage));
pageContext.write(_jsp_string11, 0, _jsp_string11.length);
out.print((pagecount));
pageContext.write(_jsp_string12, 0, _jsp_string12.length);
if(intpage<pagecount){
pageContext.write(_jsp_string13, 0, _jsp_string13.length);
out.print((intpage+1));
pageContext.write(_jsp_string14, 0, _jsp_string14.length);
}
pageContext.write(_jsp_string15, 0, _jsp_string15.length);
if(intpage>1){
pageContext.write(_jsp_string13, 0, _jsp_string13.length);
out.print((intpage-1));
pageContext.write(_jsp_string16, 0, _jsp_string16.length);
}
pageContext.write(_jsp_string17, 0, _jsp_string17.length);
news_del.getSkdb1().getDatabase1().closeConnection();
pageContext.write(_jsp_string18, 0, _jsp_string18.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 2057024146)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Depend depend;
depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
mergePath.addClassPath(getClass().getClassLoader());
_caucho_line_map = new com.caucho.java.LineMap("_news_0del__jsp.java", "/back/news_del.jsp");
_caucho_line_map.add(1, 1);
_caucho_line_map.add(1, 26);
_caucho_line_map.add(4, 34);
_caucho_line_map.add(13, 44);
_caucho_line_map.add(32, 55);
_caucho_line_map.add(42, 64);
_caucho_line_map.add(53, 74);
_caucho_line_map.add(54, 76);
_caucho_line_map.add(59, 82);
_caucho_line_map.add(59, 84);
_caucho_line_map.add(62, 86);
_caucho_line_map.add(70, 96);
_caucho_line_map.add(70, 98);
_caucho_line_map.add(70, 100);
_caucho_line_map.add(70, 102);
_caucho_line_map.add(70, 104);
_caucho_line_map.add(70, 106);
_caucho_line_map.add(70, 108);
_caucho_line_map.add(73, 110);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news_del.jsp"), 1036030827546L, 2641L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string18;
private static byte []_jsp_string9;
private static byte []_jsp_string6;
private static byte []_jsp_string15;
private static byte []_jsp_string3;
private static byte []_jsp_string17;
private static byte []_jsp_string16;
private static byte []_jsp_string11;
private static byte []_jsp_string14;
private static byte []_jsp_string0;
private static byte []_jsp_string5;
private static byte []_jsp_string7;
private static byte []_jsp_string10;
private static byte []_jsp_string1;
private static byte []_jsp_string13;
private static byte []_jsp_string2;
private static byte []_jsp_string4;
private static byte []_jsp_string8;
private static byte []_jsp_string12;
static {
try {
_jsp_string18 = "\r\n</html>\r\n".getBytes("GBK");
_jsp_string9 = "\"></td>\r\n </form>\r\n </tr>\r\n ".getBytes("GBK");
_jsp_string6 = "</td>\r\n\r\n <td>".getBytes("GBK");
_jsp_string15 = " ".getBytes("GBK");
_jsp_string3 = "\r\n <tr bgcolor=pink>\r\n <td >id</td><td >标题</td><td >审核</td><td> </td></tr>\r\n ".getBytes("GBK");
_jsp_string17 = "\r\n<form action=\"news_del.jsp\">去第<input type=\"text\" name=page>页<input type=\"submit\"></form>\r\n</body>\r\n".getBytes("GBK");
_jsp_string16 = "\">上一页</a>".getBytes("GBK");
_jsp_string11 = "页 共".getBytes("GBK");
_jsp_string14 = "\">下一页</a>".getBytes("GBK");
_jsp_string0 = "\r\n".getBytes("GBK");
_jsp_string5 = "</td>\r\n <td>".getBytes("GBK");
_jsp_string7 = "</td>\r\n <td><input type=\"submit\" value=\"删除\" name=\"".getBytes("GBK");
_jsp_string10 = "\r\n</table>\r\n第".getBytes("GBK");
_jsp_string1 = "\r\n<html>\r\n".getBytes("GBK");
_jsp_string13 = "<a href=\"news_del.jsp?page=".getBytes("GBK");
_jsp_string2 = "\r\n<head>\r\n<title>\r\nnews_del\r\n</title>\r\n</head>\r\n<body>\r\n\r\n<table border=\"1\" width=\"100%\">\r\n\r\n".getBytes("GBK");
_jsp_string4 = "\r\n\r\n <form action=\"news_del_res.jsp\">\r\n <td>".getBytes("GBK");
_jsp_string8 = "\"><input type=\"hidden\" name=\"del\" value=\"".getBytes("GBK");
_jsp_string12 = "页 ".getBytes("GBK");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -