📄 question_0002ejsp_jsp.java
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.Collection;
import java.util.Iterator;
import com.bwm.core.*;
import com.bwm.model.User;
import com.bwm.model.Question;
public class question_0002ejsp_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>明日科技");
out.write("</title>\r\n");
out.write("<link href=\"css/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("</head>\r\n");
out.write("<body onLoad=\"clockon(bgclock)\">\r\n");
out.write("<table width=\"750\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder6\"> \r\n ");
out.write("<tr> \r\n ");
out.write("<td colspan=\"3\">");
JspRuntimeLibrary.include(request, response, "top.jsp", out, false);
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
out.write("<tr> \r\n ");
out.write("<td width=\"196\" rowspan=\"2\" align=\"left\" valign=\"top\">");
JspRuntimeLibrary.include(request, response, "left.jsp", out, false);
out.write("</td> \r\n ");
out.write("<td width=\"5\" rowspan=\"2\"> ");
out.write("</td> \r\n ");
out.write("<td width=\"547\" align=\"center\" valign=\"top\">");
out.write("<table width=\"100%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder2\"> \r\n ");
out.write("<tr align=\"center\"> \r\n ");
out.write("<td class=\"TableTitle1\" >常见问题");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
BasetableFactory bf=BasetableFactory.getInstance();
Collection coll=bf.ListQuestion("ORDER BY qid");
if(coll==null||coll.size()<=0){
out.write(" \r\n ");
out.write("<tr align=\"center\"> \r\n ");
out.write("<td height=\"27\">当前常见问题为空");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
}else{ Iterator it=coll.iterator();
while(it.hasNext()){Question a=(Question)it.next();
out.write(" \r\n ");
out.write("<tr align=\"left\"> \r\n ");
out.write("<td height=\"27\" style=\"padding-left:5px;\">");
out.write("<strong>Q:");
out.print(a.getQuestion());
out.write("</strong>");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
out.write("<tr align=\"left\"> \r\n ");
out.write("<td height=\"27\" style=\"padding-left:5px;\">");
out.write("<strong>A:");
out.write("</strong>");
out.print(a.getAnswer());
out.write("</td> \r\n ");
out.write("</tr> ");
}
out.write(" \r\n ");
out.write("<tr align=\"right\"> \r\n ");
out.write("<td height=\"27\"> ");
out.write("</td> \r\n ");
out.write("</tr> ");
}
out.write(" \r\n ");
out.write("</table>");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
out.write("<tr> \r\n ");
out.write("<td> ");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
out.write("<tr> \r\n ");
out.write("<td colspan=\"3\" align=\"center\">");
JspRuntimeLibrary.include(request, response, "bottom.jsp", out, false);
out.write("</td> \r\n ");
out.write("</tr> \r\n");
out.write("</table> \r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = _jspx_out;
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 + -