📄 shownewsmessage_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import bean.newsAction;
import bean.newsBean;
public final class showNewsMessage_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=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, 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\n\r\n\r\n");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
out.write("\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n <head>\r\n <base href=\"");
out.print(basePath);
out.write("\">\r\n \r\n <title>My JSP 'showNewsMessage.jsp' starting page</title>\r\n \r\n\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t<meta http-equiv=\"expires\" content=\"0\"> \r\n\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n\t<!--\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n\t-->\r\n\r\n </head>\r\n \r\n <body>\r\n <div align=\"center\">\r\n <table width=\"948\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <!--DWLayoutTable-->\r\n\t");
int newsid=Integer.parseInt(request.getParameter("newsid"));
newsAction action=new newsAction();
Vector v=action.getShowNews(newsid);
newsBean bean=(newsBean)v.get(0);
out.write("\r\n <tr bgcolor=\"f0f0f0\" bgcolordark=\"fcfcfc\" bgcolorlight=\"ffffff\">\r\n <td width=\"948\" height=\"28\" valign=\"top\"><div align=\"center\">");
out.print(bean.getNewsTitle());
out.write("</div></td>\r\n </tr>\r\n <tr bgcolor=\"ffccff\" bgcolordark=\"fcfcfc\" bgcolorlight=\"ffffff\">\r\n <td height=\"29\" valign=\"top\"><pre>发布人:");
out.print(bean.getNewsName() );
out.write(" 发布时间:");
out.print(bean.getNewsDate() );
out.write("</pre></td>\r\n </tr>\r\n <tr bgcolor=\"ff99cc\" bgcolordark=\"99ffcc\" bgcolorlight=\"ffffff\">\r\n <td height=\"956\" valign=\"top\"><pre>");
out.print(bean.getNewsContext() );
out.write("</pre></td>\r\n </tr>\r\n <tr>\r\n <td height=\"36\" valign=\"top\"><!--DWLayoutEmptyCell--> </td>\r\n </tr>\r\n </table>\r\n</div>\r\n </body>\r\n</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 + -