?? selectnewscontent_jsp.java
字號:
package org.apache.jsp.fNews;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import com.actionForm.NewsForm;
public final class selectNewsContent_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write('\r');
out.write('\n');
com.dao.NewsDao newsDao = null;
synchronized (request) {
newsDao = (com.dao.NewsDao) _jspx_page_context.getAttribute("newsDao", PageContext.REQUEST_SCOPE);
if (newsDao == null){
newsDao = new com.dao.NewsDao();
_jspx_page_context.setAttribute("newsDao", newsDao, PageContext.REQUEST_SCOPE);
}
}
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");
com.dao.SortDao sortDao = null;
synchronized (request) {
sortDao = (com.dao.SortDao) _jspx_page_context.getAttribute("sortDao", PageContext.REQUEST_SCOPE);
if (sortDao == null){
sortDao = new com.dao.SortDao();
_jspx_page_context.setAttribute("sortDao", sortDao, PageContext.REQUEST_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.tool.TimeShow time = null;
synchronized (request) {
time = (com.tool.TimeShow) _jspx_page_context.getAttribute("time", PageContext.REQUEST_SCOPE);
if (time == null){
time = new com.tool.TimeShow();
_jspx_page_context.setAttribute("time", time, PageContext.REQUEST_SCOPE);
}
}
out.write('\r');
out.write('\n');
NewsForm form=(NewsForm)request.getAttribute("form");
out.write("\r\n");
out.write("<title>宇晨網絡新聞中心前臺--新聞詳細查詢</title>\r\n");
out.write("</head>\r\n");
out.write("<link rel=\"stylesheet\" href=\"css/style.css\">\r\n");
out.write("<body><div align=\"center\">\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../fTop.jsp", out, false);
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" <table width=\"800\" height=\"660\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"216\" rowspan=\"2\" valign=\"top\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../fleft.jsp", out, false);
out.write("</td>\r\n");
out.write(" <td height=\"30\" align=\"left\" valign=\"middle\" background=\"fImage/place.jpg\" > 當前位置 >> ");
out.print(form.getBigSort());
out.write(" >> ");
out.print(sortDao.selectSortName(form.getSortId()));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"630\" align=\"center\" valign=\"top\" background=\"fImage/botten.jpg\"><table width=\"100%\" height=\"31\"background=\"fImage/newsSort.jpg\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"8%\" height=\"25\" > </td>\r\n");
out.write(" <td width=\"92%\"><font color=\"#FFFFFF\">新聞題目:");
out.print(form.getTitle());
out.write("</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table> \r\n");
out.write(" <br>\r\n");
out.write(" \r\n");
out.write(" <table width=\"480\" height=\"479\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"413\" valign=\"top\">");
out.print(form.getContent());
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table><form name=\"form\" method=\"post\" action=\"\">\r\n");
out.write(" <table width=\"480\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"33\" align=\"right\">\r\n");
out.write(" <input type=\"button\" name=\"Submit\" value=\"返回\" onClick=\"javasrcipt:history.go(-1);\"> \r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table> </form></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../fBottom.jsp", out, false);
out.write("\r\n");
out.write("</div>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -