📄 _fetch_0info__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
package _news;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import org.ehotsoft.yekki.sql.*;
import org.ehotsoft.yekki.util.*;
import java.sql.*;
public class _fetch_0info__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 category_id = ParamUtil.getIntParameter( request, "category_id" );
int count = ParamUtil.getIntParameter( request, "count", 0 );
String sql = "select id, title, create_on from tbl_info_article where category_id=" + category_id + " order by id desc";
boolean show_date = ParamUtil.getBooleanParameter( request, "show_date" );
StringBuffer buf = new StringBuffer();
ResultSet rst = facade.executeQuery( sql );
for ( int i = count; i > 0 && rst.next(); i-- ) {
buf.append( "<li><a href=action.jsp?action=hit&article_id=" )
.append( rst.getString( "id" ) )
.append( ">" )
.append( StringUtil.textToHtml( rst.getString( "title" ) ) );
if ( show_date ) {
buf.append( " <font color=#959595>" ).append( rst.getDate( "create_on" ) ).append( "</font>" );
}
buf.append( "</a></li>" );
}
buf.append( "<p><b><a href=action.jsp?action=more&category_id=" )
.append( category_id)
.append( ">更多>></a></b>" );
facade.close();
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
out.print((buf.toString()));
pageContext.write(_jsp_string2, 0, _jsp_string2.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("_fetch_0info__jsp.java", "/test/news/fetch_info.jsp");
_caucho_line_map.add(4, 1);
_caucho_line_map.add(1, 30);
_caucho_line_map.add(34, 64);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news/fetch_info.jsp"), 1029321326106L, 1255L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string1;
private static byte []_jsp_string0;
private static byte []_jsp_string2;
static {
try {
_jsp_string1 = "\r\ndocument.write( \"".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
_jsp_string2 = "\" );\r\n".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -