📄 text_0005fpage_0002ejsp_jsp.java
字号:
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class Text_0005fpage_0002ejsp_jsp extends HttpJspBase {
// begin [file="/Text_page.jsp";from=(5,0);to=(5,72)]
// end
static {
}
public Text_0005fpage_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/Text_page.jsp";from=(0,68);to=(5,0)]
out.write("\r\n<!--FAQ文本浏览-->\r\n<html>\r\n<head>\r\n</head>\r\n");
// end
// begin [file="/Text_page.jsp";from=(5,0);to=(5,72)]
faq_project.Page_Bean Pbean = null;
boolean _jspx_specialPbean = false;
synchronized (session) {
Pbean= (faq_project.Page_Bean)
pageContext.getAttribute("Pbean",PageContext.SESSION_SCOPE);
if ( Pbean == null ) {
_jspx_specialPbean = true;
try {
Pbean = (faq_project.Page_Bean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "faq_project.Page_Bean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"faq_project.Page_Bean", exc);
}
pageContext.setAttribute("Pbean", Pbean, PageContext.SESSION_SCOPE);
}
}
if(_jspx_specialPbean == true) {
// end
// begin [file="/Text_page.jsp";from=(5,0);to=(5,72)]
}
// end
// HTML // begin [file="/Text_page.jsp";from=(5,72);to=(7,2)]
out.write("\r\n<body bgcolor=\"#ffffff\">\r\n ");
// end
// begin [file="/Text_page.jsp";from=(7,4);to=(23,2)]
Pbean.flush();
Pbean.setROW_PAGE(10);
Iterator rs=Pbean.getList();
while(rs.hasNext()){
out.println("<table><tr><th>");
rs.next();
String questions=rs.next().toString();
String answers=rs.next().toString();
String dates=rs.next().toString();
String types=rs.next().toString();
out.println("<tr><td align='right'>标题:</td><th>【"+types+"】"+questions+"</th></tr>");
out.println("<tr><td></td><td>"+answers+"</td></tr>");
out.println("<tr><td>修改日期:</td><td>"+dates+"</td></tr>");
out.println("</table><hr/>");
}
// end
// HTML // begin [file="/Text_page.jsp";from=(23,4);to=(26,6)]
out.write("\r\n <table width=\"584\" height=\"26\">\r\n <tr>\r\n ");
// end
// begin [file="/Text_page.jsp";from=(26,8);to=(31,6)]
if(Pbean.getGOTO_PAGE()==1)
out.println("<td>【上一页】</td>");
else
out.println("<td><a href='page_servlet?pagetype=Black'>【上一页】</a></td>");
// end
// HTML // begin [file="/Text_page.jsp";from=(31,8);to=(33,8)]
out.write("\r\n <td align=\"center\">\r\n ");
// end
// begin [file="/Text_page.jsp";from=(33,10);to=(42,8)]
int i=1;
while(i<=Pbean.getMAX_PAGE()){
if(i!=Pbean.getGOTO_PAGE())
out.println("<a href='#' onclick='num("+i+")'>"+i+"</a>");
else
out.println(i);
i++;
}
// end
// HTML // begin [file="/Text_page.jsp";from=(42,10);to=(44,6)]
out.write("\r\n </td>\r\n ");
// end
// begin [file="/Text_page.jsp";from=(44,8);to=(49,6)]
if(Pbean.getGOTO_PAGE()==Pbean.getMAX_PAGE())
out.println("<td>【下一页】</td>");
else
out.println("<td><a href='page_servlet?pagetype=Next'>【下一页】</a></td>");
// end
// HTML // begin [file="/Text_page.jsp";from=(49,8);to=(50,54)]
out.write("\r\n <td>位置:<input type=\"text\" name=\"page_num\" value=");
// end
// begin [file="/Text_page.jsp";from=(50,57);to=(50,77)]
out.print(Pbean.getGOTO_PAGE());
// end
// HTML // begin [file="/Text_page.jsp";from=(50,79);to=(65,0)]
out.write(" size=\"3\"/></td>\r\n <td><a href=\"#\" onclick=\"commit()\">[GOTO]</a></td>\r\n </tr>\r\n </table>\r\n<script language=\"JavaScript\">\r\nfunction commit(){\r\nif(isNaN(page_num.value)==false)\r\nlocation.href='page_servlet?pagetype=GOTO&page_num='+page_num.value;\r\n}\r\nfunction num(a){\r\nlocation.href='page_servlet?pagetype=GOTO&page_num='+a;\r\n}\r\n</script>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -