📄 updatenews_jsp.java
字号:
package org.apache.jsp.bNews;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.List;
import com.actionForm.NewsForm;
import com.actionForm.SortForm;
public final class updateNews_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/struts-html.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_onsubmit_action;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_hidden_value_property_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_submit;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_reset;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_button_property_onclick;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_html_form_onsubmit_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_hidden_value_property_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_submit = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_reset = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_button_property_onclick = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_html_form_onsubmit_action.release();
_jspx_tagPool_html_hidden_value_property_nobody.release();
_jspx_tagPool_html_submit.release();
_jspx_tagPool_html_reset.release();
_jspx_tagPool_html_button_property_onclick.release();
}
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\n\r\n\r\n");
com.tool.Chinese chinese = null;
synchronized (request) {
chinese = (com.tool.Chinese) _jspx_page_context.getAttribute("chinese", PageContext.REQUEST_SCOPE);
if (chinese == null){
chinese = new com.tool.Chinese();
_jspx_page_context.setAttribute("chinese", chinese, PageContext.REQUEST_SCOPE);
}
}
out.write('\r');
out.write('\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\n\r\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\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>宇晨网络新闻中心后台</title>\r\n\r\n</head>\r\n");
String bigSort=chinese.toChinese(request.getParameter("bigSort"));
NewsForm form=(NewsForm)request.getAttribute("form");
out.write("\r\n<body><div align=\"center\">\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../bTop.jsp", out, false);
out.write("\r\n<table width=\"800\" height=\"465\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"196\" rowspan=\"2\" valign=\"top\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../bleft.jsp", out, false);
out.write("</td>\r\n <td width=\"604\" height=\"57\" background=\"bImage/place.jpg\" >\r\n <table width=\"600\" height=\"56\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td> 当前位置提示 >> ");
out.print(bigSort);
out.write(" >> 修改新闻</td>\r\n </tr>\r\n <tr>\r\n <td> </td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n <tr>\r\n <td height=\"400\" align=\"center\" valign=\"top\" background=\"bImage/big.jpg\"><table width=\"601\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"bImage/placeNext.jpg\">\r\n <tr>\r\n <td height=\"21\" > </td>\r\n <td>修改新闻信息</td>\r\n </tr>\r\n </table> <br> ");
// html:form
org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_onsubmit_action.get(org.apache.struts.taglib.html.FormTag.class);
_jspx_th_html_form_0.setPageContext(_jspx_page_context);
_jspx_th_html_form_0.setParent(null);
_jspx_th_html_form_0.setAction("newsAction.do?method=updateNewsAction");
_jspx_th_html_form_0.setOnsubmit("return checkEmpty(newsForm)");
int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n\t <table width=\"415\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"75\" height=\"30\" align=\"center\">新闻标题</td>\r\n <td width=\"334\"> \r\n <input name=\"title\" value=\"");
out.print(form.getTitle());
out.write("\" size=\"50\"/></td>\r\n </tr>\r\n <tr>\r\n <td height=\"30\" align=\"center\">详细类别</td>\r\n <td> \r\n <select name=\"sortId\">\r\n ");
List list=sortDao.selectSort(bigSort);
for(int i=0;i<list.size();i++){
SortForm sortForm=(SortForm)list.get(i);
out.write("\r\n <option value=\"");
out.print(String.valueOf(sortForm.getId()));
out.write('"');
out.write(' ');
if(sortForm.getId()==form.getSortId()){
out.write(" selected");
}
out.write(" style=\"background:#00FFFF\">");
out.print(sortForm.getSmallSort());
out.write("</option>\r\n ");
}
out.write("\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td height=\"252\" align=\"center\" valign=\"top\"><br>\r\n 新闻内容</td>\r\n <td> \r\n <textarea cols=\"42\" rows=\"14\" name=\"content\" >");
out.print(form.getContent());
out.write("</textarea></td>\r\n </tr>\r\n <tr>\r\n <td height=\"30\" align=\"center\">修改时间</td>\r\n <td> ");
out.print(time.cuttentMonthDate());
// html:hidden
org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_0 = (org.apache.struts.taglib.html.HiddenTag) _jspx_tagPool_html_hidden_value_property_nobody.get(org.apache.struts.taglib.html.HiddenTag.class);
_jspx_th_html_hidden_0.setPageContext(_jspx_page_context);
_jspx_th_html_hidden_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_form_0);
_jspx_th_html_hidden_0.setProperty("createTime");
_jspx_th_html_hidden_0.setValue(time.cuttentMonthDate());
int _jspx_eval_html_hidden_0 = _jspx_th_html_hidden_0.doStartTag();
if (_jspx_th_html_hidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -