📄 _edit_0poll__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
package _news._admin._poll;
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_0poll__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);
int topic_id = ParamUtil.getIntParameter( request, "id" );
int counter = 0;
String topic_caption = "";
SQLFacade facade = new SQLFacade();
String sql = "select * from tbl_poll_topic where id=" + topic_id;
ResultSet rst = facade.executeQuery( sql );
if ( rst.next() ) {
topic_caption = "value=\"" + rst.getString( "caption" ) + "\"";
}
sql = "select id, caption from tbl_poll_item where topic_id=" + topic_id;
rst = facade.executeQuery( sql );
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
out.print((topic_caption));
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
while( rst.next() ) {
counter++;
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
out.print((counter));
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
out.print(("value=\"" + rst.getString( "caption" ) + "\""));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print(("value=\"" + rst.getString( "id" ) + "\""));
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
}
facade.close();
pageContext.write(_jsp_string7, 0, _jsp_string7.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_0poll__jsp.java", "/test/news/admin/poll/edit_poll.jsp");
_caucho_line_map.add(4, 1);
_caucho_line_map.add(1, 30);
_caucho_line_map.add(41, 53);
_caucho_line_map.add(44, 55);
_caucho_line_map.add(53, 65);
_caucho_line_map.add(56, 67);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news/admin/poll/edit_poll.jsp"), 1029053889985L, 2287L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string3;
private static byte []_jsp_string5;
private static byte []_jsp_string6;
private static byte []_jsp_string2;
private static byte []_jsp_string4;
private static byte []_jsp_string7;
private static byte []_jsp_string1;
private static byte []_jsp_string0;
static {
try {
_jsp_string3 = "\r\n <tr bgcolor=\"#FFFFFF\"> \r\n <td>项目".getBytes("GB2312");
_jsp_string5 = ">\r\n <input type=\"hidden\" name=\"item_id\" ".getBytes("GB2312");
_jsp_string6 = ">\r\n </td>\r\n </tr>\r\n ".getBytes("GB2312");
_jsp_string2 = ">\r\n </td>\r\n </tr>\r\n ".getBytes("GB2312");
_jsp_string4 = "</td>\r\n <td> \r\n <input type=\"text\" name=\"item_caption\" maxlength=\"255\" size=\"70\" ".getBytes("GB2312");
_jsp_string7 = "\r\n <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n <td colspan=\"2\"> \r\n <input type=\"submit\" value=\" 提 交 \">\r\n <input type=\"reset\" value=\" 重 置 \">\r\n <input type=\"hidden\" name=\"action\" value=\"edit_poll\">\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n</body>\r\n</html>\r\n".getBytes("GB2312");
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body bgcolor=\"#FFFFFF\" text=\"#000000\" background=\"../images/background.gif\">\r\n<form name=\"\" method=\"post\" action=\"action.jsp\">\r\n <table width=\"75%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" bgcolor=\"#666666\">\r\n <tr> \r\n <td> \r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\">\r\n <tr> \r\n <td colspan=\"2\"><b><font color=\"#FFFFFF\">添加调查项</font></b></td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\"> \r\n <td width=\"25%\"><b>主题</b></td>\r\n <td> \r\n <input type=\"text\" name=\"topic_caption\" maxlength=\"255\" size=\"70\" ".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 + -