📄 modifysort_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.com.shopadmin.*;
import java.util.*;
public final class modifySort_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(2);
_jspx_dependants.add("/WEB-INF/struts-html.tld");
_jspx_dependants.add("/WEB-INF/struts-bean.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_submit_value_property;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_html_form_method_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_submit_value_property = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_html_form_method_action.release();
_jspx_tagPool_html_submit_value_property.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=UTF-8");
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");
out.write("\r\n");
out.write("\t\r\n");
out.write(" \r\n");
out.write("\r\n");
AdminUser adminUser = (AdminUser)session.getAttribute(Constants.LOGIN_USER_KEY);
if(adminUser == null ) {
response.sendRedirect("login.jsp");
}
List list = (List)session.getAttribute(Constants.SEARCH_LIST_KEY);
Integer tpage=(Integer)session.getAttribute(Constants.CUR_PAGEID_KEY);
int pageId=tpage.intValue();
Integer tpageCount=(Integer)session.getAttribute(Constants.PAGE_COUNT_KEY);
int pageCount=tpageCount.intValue();
String keyword=(String)session.getAttribute(Constants.CUR_KEYWORD_KEY);
Sort sort = null;
out.write("\r\n");
out.write("<html><head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
out.write("<link href=images/css.css rel=STYLESHEET type=text/css>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<div align=\"center\">\r\n");
out.write(" <center>\r\n");
out.write("\r\n");
out.write("<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#808080\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <div align=\"center\">\r\n");
out.write(" <center>\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" height=\"73\" bgcolor=\"#DEC3B5\" style=\"border-width:2; \" bordercolor=\"#000066\" bordercolorlight=\"#215DC6\" bordercolordark=\"#000066\">\r\n");
out.write(" <!--DWLayoutTable-->\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"459\" height=\"20\" valign=\"top\" bgcolor=\"#DEC3B5\" colspan=\"4\"> \r\n");
out.write(" ");
if (_jspx_meth_html_form_0(_jspx_page_context))
return;
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"123\" height=\"20\" valign=\"top\" bgcolor=\"#DEC3B5\"> \r\n");
out.write(" <div align=\"center\"><b><font color=\"#000066\">商品</font></b><font color=\"#000066\"><b>类别</b></font></div></td>\r\n");
out.write(" <td valign=\"top\" bgcolor=\"#DEC3B5\"> <div align=\"center\">\r\n");
out.write(" <b><font color=\"#000066\">操作</font></b></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write("\t\t \r\n");
out.write("\t ");
if(list != null ){
for(int i = 0;i < list.size();i++)
{
sort = (Sort)list.get(i);
out.write("\r\n");
out.write("\r\n");
out.write(" \r\n");
out.write(" \r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"18\" bgcolor=\"#FFFFFF\"><b><font color=\"#000066\">");
out.print(sort.getName());
out.write("</font></b></td>\r\n");
out.write(" <td width=\"42\" bgcolor=\"#FFFFFF\"> \r\n");
out.write(" <div align=\"center\"> <a href=\"delSort.do?Id=");
out.print(sort.getId());
out.write("\"><font color=\"#000066\"><b>删除</b></font></a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write(" \r\n");
out.write(" \r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"20\" > \r\n");
out.write(" <div align=\"center\"><b><font color=\"#000066\">第");
out.print(pageId+1);
out.write('页');
out.write('/');
out.write('共');
out.print(pageCount);
out.write("页\r\n");
out.write(" </font></b></td>\r\n");
out.write(" <td >\r\n");
out.write(" <form action=\"viewSort.do\" method=\"post\">\r\n");
out.write(" <input type=\"hidden\" value=\"");
out.print((keyword));
out.write("\" name=\"keyword\">\r\n");
out.write(" <input type=\"hidden\" value=\"");
out.print(pageId-1);
out.write("\" name=\"pageId\">\r\n");
out.write(" <input type=\"submit\" value=\"上一页\">\r\n");
out.write(" </form>\r\n");
out.write(" </td>\r\n");
out.write(" <td >\r\n");
out.write(" <form action=\"viewSort.do\" method=\"post\">\r\n");
out.write(" <input type=\"hidden\" value=\"");
out.print((keyword));
out.write("\" name=\"keyword\">\r\n");
out.write(" <input type=\"hidden\" value=\"");
out.print(pageId+1);
out.write("\" name=\"pageId\">\r\n");
out.write(" <input type=\"submit\" value=\"下一页\">\r\n");
out.write(" </form> \r\n");
out.write(" </td>\r\n");
out.write(" \r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"20\" colspan=\"3\" valign=\"middle\"> \r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"11\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" </table>\r\n");
out.write(" </center>\r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write(" </center>\r\n");
out.write("</div>");
} 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);
}
}
private boolean _jspx_meth_html_form_0(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// html:form
org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_method_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("addSort.do");
_jspx_th_html_form_0.setMethod("POST");
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");
out.write(" <p>\r\n");
out.write(" <b><font color=\"#000066\">\r\n");
out.write("  增加新类别:<input type=\"text\" name=\"name\" size=\"20\">\r\n");
out.write(" ");
if (_jspx_meth_html_submit_0(_jspx_th_html_form_0, _jspx_page_context))
return true;
out.write("\r\n");
out.write(" \r\n");
out.write(" </b></p>\r\n");
out.write("\t\t");
int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_form_method_action.reuse(_jspx_th_html_form_0);
return false;
}
private boolean _jspx_meth_html_submit_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_form_0, PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// html:submit
org.apache.struts.taglib.html.SubmitTag _jspx_th_html_submit_0 = (org.apache.struts.taglib.html.SubmitTag) _jspx_tagPool_html_submit_value_property.get(org.apache.struts.taglib.html.SubmitTag.class);
_jspx_th_html_submit_0.setPageContext(_jspx_page_context);
_jspx_th_html_submit_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_form_0);
_jspx_th_html_submit_0.setValue("提交");
_jspx_th_html_submit_0.setProperty("Submit");
int _jspx_eval_html_submit_0 = _jspx_th_html_submit_0.doStartTag();
if (_jspx_th_html_submit_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_submit_value_property.reuse(_jspx_th_html_submit_0);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -