📄 _edit_0article__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
package _news._admin;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import org.ehotsoft.yekki.sql.SQLFacade;
import org.ehotsoft.yekki.util.ParamUtil;
import java.sql.ResultSet;
public class _edit_0article__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=gb2312");
request.setCharacterEncoding("GB2312");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
SQLFacade facade = new SQLFacade();
int id = ParamUtil.getIntParameter( request, "id", -1 );
int page_no = ParamUtil.getIntParameter( request, "page_no", 1 );
int category_id = ParamUtil.getIntParameter( request, "category_id", -1 );
String sql = "select title, content from tbl_news_article where id=" + id;
ResultSet rst = facade.executeQuery( sql );
String title = "";
String content = "";
if ( rst.next() ) {
title = rst.getString( "title" );
content = rst.getString( "content" );
}
facade.close();
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
out.print((title));
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
out.print((content));
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
out.print((id));
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
out.print((page_no));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print((category_id));
pageContext.write(_jsp_string6, 0, _jsp_string6.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() != 2057024144)
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("_edit_0article__jsp.java", "/test/news/admin/edit_article.jsp");
_caucho_line_map.add(4, 1);
_caucho_line_map.add(1, 30);
_caucho_line_map.add(47, 54);
_caucho_line_map.add(53, 56);
_caucho_line_map.add(66, 58);
_caucho_line_map.add(67, 60);
_caucho_line_map.add(68, 62);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news/admin/edit_article.jsp"), 1028883812318L, 3034L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string4;
private static byte []_jsp_string2;
private static byte []_jsp_string5;
private static byte []_jsp_string1;
private static byte []_jsp_string6;
private static byte []_jsp_string3;
private static byte []_jsp_string0;
static {
try {
_jsp_string4 = "\">\r\n <input type=\"hidden\" name=\"page_no\" value=\"".getBytes("GB2312");
_jsp_string2 = "\">\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\" background=\"images/greystrip.gif\"> \r\n <td width=\"18%\" align=\"right\" valign=\"top\" background=\"images/greystrip.gif\">文章内容:</td>\r\n <td width=\"82%\"> \r\n <textarea rows=\"15\" name=\"content\" cols=\"70\">".getBytes("GB2312");
_jsp_string5 = "\">\r\n <input type=\"hidden\" name=\"category_id\" value=\"".getBytes("GB2312");
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\r\n<title></title>\r\n</head>\r\n\r\n<body>\r\n\r\n<form method=\"POST\" action=\"action.jsp\">\r\n <table border=\"0\" cellspacing=\"1\" width=\"58%\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" cellpadding=\"0\" bgcolor=\"#000000\" align=\"center\">\r\n <tr>\r\n \r\n <td width=\"100%\" bgcolor=\"#000066\" height=\"20\" align=\"center\"> <b><font color=\"#FFFFFF\">修 \r\n 改 文 章</font></b> </td>\r\n </tr>\r\n <tr align=\"center\">\r\n <td width=\"100%\">\r\n \r\n <table border=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#000000\" cellpadding=\"0\" background=\"images/greystrip.gif\">\r\n \r\n <tr bgcolor=\"#FFFFFF\" background=\"images/greystrip.gif\"> \r\n <td width=\"18%\" align=\"right\" height=\"30\">文章标题:</td>\r\n <td width=\"82%\" height=\"30\"> \r\n <input type=\"text\" name=\"title\" size=\"70\" maxlength=\"100\" value=\"".getBytes("GB2312");
_jsp_string6 = "\">\r\n <input type=\"hidden\" name=\"action\" value=\"edit_article\">\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n</form>\r\n</body>\r\n</html>\r\n".getBytes("GB2312");
_jsp_string3 = "</textarea>\r\n </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\" background=\"images/greystrip.gif\"> \r\n <td width=\"18%\" align=\"right\" valign=\"bottom\" height=\"20\"> </td>\r\n <td width=\"82%\"> </td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\" background=\"images/greystrip.gif\" align=\"center\"> \r\n <td colspan=\"2\" valign=\"bottom\" height=\"20\"> \r\n <input type=\"submit\" value=\" 修 改 \">\r\n \r\n <input type=\"reset\" value=\" 复 原 \">\r\n <input type=\"button\" value=\"返 回\" onClick=\"javascript:{ window.location = 'check.jsp' }\" name=\"button\">\r\n <input type=\"hidden\" name=\"id\" value=\"".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -