⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _more_0article__jsp.java

📁 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.SQLFacade;
import org.ehotsoft.yekki.sql.Pager;
import org.ehotsoft.yekki.util.ParamUtil;
import org.ehotsoft.yekki.util.StringUtil;
import java.sql.ResultSet;

public class _more_0article__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
	String getPageInfo( Pager pager, String url ) {
		
		StringBuffer buf = new StringBuffer( );
		
		for ( int i = 1; i <= pager.getPageCount(); i++ ) {
						
			if ( pager.getAbsolutePage() == i ) {
				
				buf.append( " <font color='red'>" )
					.append( i )
					.append( "</font>" );
			}
			else {
				
				buf.append( " <a href='" )
					.append( url )
					.append( "?page_no=" )
					.append( i )
					.append( pager.getArgs() )
					.append( "'>" )
					.append( i )
					.append( "</a>" );
			}
						
		}
		
		return buf.toString();
	}

  
  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);
      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 category_id = ParamUtil.getIntParameter( request, "category_id" );
	String category_caption = ParamUtil.getStringParameter( request, "category_caption" );
	category_caption = java.net.URLEncoder.encode( category_caption );
	String sql = "select title, create_on, id from tbl_info_article where category_id=" + category_id;

	SQLFacade facade = new SQLFacade();
	Pager pager = facade.executePage( request, sql, 5 );
	StringBuffer buf = new StringBuffer();
	ResultSet rst = pager.getResultSet();

	while ( pager.next() ) {
		
		buf.append( "<li><a href='show_article.jsp?artice_id=" )
			.append( rst.getString( "id" ) )
			.append( "'>" )
			.append( rst.getString( "title" ) )
			.append( "</a></li>" );
	}
	pager.setArgs( "&category_id=" + category_id + "&category_caption=" + category_caption );
	buf.append( "<p>页码:" ).append( getPageInfo( pager, "more_article.jsp" ) );

	facade.close();

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      out.print((request.getParameter( "category_caption" )));
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      out.print((buf.toString()));
      pageContext.write(_jsp_string3, 0, _jsp_string3.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("_more_0article__jsp.java", "/test/news/more_article.jsp");
    _caucho_line_map.add(6, 1);
    _caucho_line_map.add(7, 17);
    _caucho_line_map.add(1, 62);
    _caucho_line_map.add(37, 69);
    _caucho_line_map.add(76, 94);
    _caucho_line_map.add(83, 96);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("news/more_article.jsp"), 1029459691221L, 2930L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string2;
  private static byte []_jsp_string1;
  private static byte []_jsp_string0;
  private static byte []_jsp_string3;
  static {
    try {
      _jsp_string2 = "</td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n        </tr>\r\n        <tr> \r\n          <td valign=\"top\" colspan=\"2\">\r\n		  ".getBytes("GB2312");
      _jsp_string1 = "\r\n<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"433\" align=\"center\">\r\n  <tr> \r\n      \r\n    <td width=\"180\" bgcolor=\"#E3E3E3\" valign=\"top\" align=\"center\">&nbsp; </td>\r\n      \r\n    <td width=\"1\" bgcolor=\"#E3E3E3\" valign=\"top\" align=\"center\" background=\"/news/image/bg_02.gif\"></td>\r\n      \r\n    <td bgcolor=\"#FFFFFF\" valign=\"top\">\r\n      <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" width=\"100%\">\r\n        <tr> \r\n          <td rowspan=\"4\">&nbsp;</td>\r\n          <td valign=\"top\" colspan=\"2\"> \r\n            <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n              <tr> \r\n                <td width=\"21\" align=\"center\"><img src=\"image/li.gif\" width=\"10\" height=\"10\"></td>\r\n                <td valign=\"bottom\"><a href=\"/index.jsp\">首页</a>-&gt;<a href=\"/news/news.jsp\">新闻</a>-&gt;".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string3 = "\r\n		  \r\n		  </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n    </tr>\r\n  </table>\r\n  ".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -