📄 updatestyle_0002ejsp_jsp.java
字号:
package jsp.managerBack.newsStyleManager;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.List;
import java.sql.*;
import com.victor.domain.NewsTypeActionForm;
import com.victor.domain.NewsStyleActionForm;
public class updateStyle_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("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>修改新闻的详细类别");
out.write("</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\nbody {\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n}\r\ntd{\r\nfont-size:9pt;\r\n}\r\n.style1 {\r\n\tcolor: #FF9900;\r\n\tfont-weight: bold;\r\n}\r\n-->\r\n");
out.write("</style>");
out.write("</head>\r\n");
out.write("<script language=\"JavaScript\">\r\nfunction RgTest(){\r\nif(document.form.style.value==\"\"){\r\nwindow.alert(\"请输入详细类别:\");\r\ndocument.form.style.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.newsType.value==\"\"){\r\nwindow.alert(\"请选择新闻类型:\");\r\ndocument.form.newsType.focus();\r\nreturn false;\r\n}\r\n\r\nreturn true;\r\n}\r\n");
out.write("</script>\r\n");
List listStyle=(List)request.getAttribute("listStyle");
out.write("\r\n");
for (int i=0;i<listStyle.size();i++){
NewsStyleActionForm style=(NewsStyleActionForm)listStyle.get(i);
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table width=\"568\" height=\"419\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"> ");
out.write("<p>");
out.write("<br>\r\n ");
out.write("<br>\r\n ");
out.write("<br >");
out.write("<strong style=\"color:#FF9900\"> 添加新闻的详细类别");
out.write("</strong>");
out.write("</p>\r\n ");
out.write("<form name=\"form\" method=\"post\" action=\"updateStyleAction.do?styleID=");
out.print(style.getStyleID());
out.write("\" onSubmit=\"return RgTest()\">\r\n ");
out.write("<table width=\"249\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"70\" align=\"center\" bgcolor=\"#0099cc\">详细类别:");
out.write("</td>\r\n ");
out.write("<td width=\"175\" bgcolor=\"#ffffff\">");
out.write("<input type=\"text\" name=\"style\" value=\"");
out.print(style.getStyleName());
out.write("\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
}
out.write("\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\" bgcolor=\"#0099cc\">新闻类型:");
out.write("</td>\r\n ");
out.write("<td bgcolor=\"#ffffff\">");
out.write("<select name=\"newsType\">\r\n ");
out.write("<option value=\"\">请选择");
out.write("</option>\r\n ");
List list=(List)request.getAttribute("listType");
out.write("\r\n ");
for(int i=0;i<list.size();i++){
NewsTypeActionForm type=(NewsTypeActionForm)list.get(i);
out.write("\r\n ");
out.write("<option value=\"");
out.print(type.getTypeName());
out.write("\">");
out.print(type.getTypeName());
out.write("</option>\r\n ");
}
out.write("\r\n ");
out.write("</select> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<br>\r\n ");
out.write("<input type=\"submit\" name=\"Submit2\" value=\"提交\">\r\n \r\n ");
out.write("<input type=\"reset\" name=\"Submit\" value=\"重置\">\r\n ");
out.write("</form>");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>");
} 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 + -