top_0005fmain_0002ejsp_jsp.java

来自「jsp技术 基于struts框架的新闻发布系统」· Java 代码 · 共 147 行

JAVA
147
字号
package jsp.managerBack;

import java.util.List;
import java.sql.*;
import com.victor.domain.NewsTypeActionForm;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class top_0005fmain_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public top_0005fmain_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    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;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=gb2312");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(0,51);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(1,34);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(2,30);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(3,56);to=(4,0)]
                out.write("\r\n");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(4,2);to=(4,43)]
                java.util.Date date=new java.util.Date();
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(4,45);to=(32,131)]
                out.write("\r\n<html>\r\n<head>\r\n\r\n<title>manager_right</title>\r\n\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><style type=\"text/css\">\r\n<!--\r\nbody {\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tmargin-right: 0px;\r\n\tmargin-bottom: 0px;\r\n}\r\ntd{\r\nfont-size:9pt;\r\n}\r\n.style1 {color: #FFFFFF}\r\n-->\r\n</style></head>\r\n<body>\r\n<table width=\"800\" height=\"99\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r\n    <tr>\r\n      <td height=\"74\" colspan=\"2\"background=\"jsp/images/htbanner.jpg\">&nbsp;</td>\r\n  </tr>\r\n    <tr>\r\n      <td width=\"373\" height=\"25\" background=\"jsp/images/navigate.jpg\" bgcolor=\"#052754\"><table width=\"365\" height=\"25\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n        <tr>\r\n          <td width=\"365\" height=\"25\" align=\"right\" background=\"jsp/images/navigateht.jpg\" class=\"style17\"><span class=\"style1\">今天是");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(32,134);to=(32,153)]
                out.print(date.getYear()+1900);
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(32,155);to=(32,156)]
                out.write("年");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(32,159);to=(32,176)]
                out.print(date.getMonth()+1);
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(32,178);to=(32,179)]
                out.write("月");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(32,182);to=(32,196)]
                out.print(date.getDate());
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(32,198);to=(37,6)]
                out.write("日</span> </td>\r\n        </tr>\r\n      </table></td>\r\n      <td width=\"425\" height=\"25\" background=\"jsp/images/navigate.jpg\" bgcolor=\"#052754\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n        <tr>\r\n      ");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(37,8);to=(37,59)]
                List listTop=(List)request.getAttribute("listTop");
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(37,61);to=(38,9)]
                out.write("\r\n         ");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(38,11);to=(41,0)]
                for(int i=0;i<listTop.size();i++){
                NewsTypeActionForm top=(NewsTypeActionForm)listTop.get(i);
                
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(41,2);to=(42,129)]
                out.write("\r\n          <td align=\"center\" width=\"68\" height=\"25\" background=\"jsp/images/diamondsht.jpg\"><a href=\"selectMainAction.do?newstype=");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(42,132);to=(42,149)]
                out.print(top.getTypeName());
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(42,151);to=(42,194)]
                out.write("\" target=\"mainFrame\"><font color=\"#6B3000\">");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(42,197);to=(42,214)]
                out.print(top.getTypeName());
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(42,216);to=(43,4)]
                out.write("</font></a>\r\n\t\t  ");

            // end
            // begin [file="/jsp/managerBack/top_main.jsp";from=(43,6);to=(43,7)]
                }
            // end
            // HTML // begin [file="/jsp/managerBack/top_main.jsp";from=(43,9);to=(50,0)]
                out.write("\t\r\n        </tr>\r\n      </table>\t  </td>\r\n    </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");

            // end

        } catch (Throwable t) {
            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 + =
减小字号Ctrl + -
显示快捷键?