📄 index_jsp.java
字号:
package org.apache.jsp.admin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import jChatBox.Util.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/admin/header.jsp");
_jspx_dependants.add("/admin/footer.jsp");
}
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html");
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;
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("<html>\r\n");
out.write("\r\n");
jChatBox.Service.SystemLogin SystemLogin = null;
synchronized (request) {
SystemLogin = (jChatBox.Service.SystemLogin) _jspx_page_context.getAttribute("SystemLogin", PageContext.REQUEST_SCOPE);
if (SystemLogin == null){
try {
SystemLogin = (jChatBox.Service.SystemLogin) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "jChatBox.Service.SystemLogin");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "jChatBox.Service.SystemLogin", exc);
}
_jspx_page_context.setAttribute("SystemLogin", SystemLogin, PageContext.REQUEST_SCOPE);
}
}
out.write('\r');
out.write('\n');
XMLPropertyResourceBundle defaultBundle = (XMLPropertyResourceBundle) XMLConfig.RESOURCES.get(XMLConfig.DEFAULTLANGUAGE);
response.setContentType("text/html; charset="+defaultBundle.getString("global.encoding"));
/* I18N support since Servlets 2.3. */
//try
//{
// request.setCharacterEncoding(defaultBundle.getString("global.encoding"));
//} catch (Exception e) {}
String jspDisplay = SystemLogin.doLogin(request,session);
if (jspDisplay != null)
{
if (true) {
_jspx_page_context.forward( jspDisplay );
return;
}
//response.sendRedirect(jspDisplay);
}
out.write("\r\n");
out.write("<head>\r\n");
out.write("<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"styles/admin.css\">\r\n");
out.write("<title>jChatBox Login</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" link=\"#9999CC\" alink=\"#9999CC\" vlink=\"#9999CC\">\r\n");
out.write("<center>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"68\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td bgcolor=\"#2D1E86\" height=\"65\" width=\"33%\" align=\"left\" valign=\"top\"><font color=\"#FFFFFF\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-2\"><b><font color=\"#FFFF66\"> v");
out.print( jChatBox.Util.Conf.VERSION );
out.write("</font></b></font></td>\r\n");
out.write(" <td bgcolor=\"#2D1E86\" align=\"center\" height=\"65\" width=\"34%\"><a href=\"http://www.javazoom.net/jzservlets/jchatbox/jchatbox.html\" target=\"_blank\"><img src=\"images/jchatboxt.gif\" width=\"214\" height=\"65\" alt=\"jChatBox\" border=\"0\"></a></td>\r\n");
out.write(" <td bgcolor=\"#2D1E86\" height=\"65\" align=\"right\" valign=\"top\" width=\"33%\"><font color=\"#FFFFFF\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-2\"><b><font color=\"#0099CC\">© JavaZOOM 1999-2004</font> <br></b><a class=\"homelink\" href=\"http://www.javazoom.net\" target=\"_blank\">http://www.javazoom.net</a> </font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"33%\" height=\"3\" background=\"images/jchatboxb.gif\"><img src=\"images/single.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" <td width=\"34%\" align=\"center\" background=\"images/jchatboxb.gif\" height=\"3\"><img src=\"images/single.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" <td width=\"33%\" height=\"3\" background=\"images/jchatboxb.gif\"><img src=\"images/single.gif\" width=\"1\" height=\"1\"></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>");
out.write("\r\n");
out.write("</center>\r\n");
out.write("<form method=\"post\" action=\"index.jsp\" name=\"chat\">\r\n");
out.write(" <div align=\"center\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\"><b><font color=\"#FF0000\">\r\n");
out.write(" ");
String error = SystemLogin.getSysMessage();
if (error != null)
{
if (error.equals(Conf.ACCESSDENIED)) out.print("Access Denied : "+request.getRemoteAddr());
}
out.write("\r\n");
out.write(" </font></b></font><br>\r\n");
out.write(" <br>\r\n");
out.write(" </div>\r\n");
out.write(" <table width=\"40%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr bgcolor=\"#999999\">\r\n");
out.write(" <td bgcolor=\"#003399\">\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\">\r\n");
out.write(" <tr bgcolor=\"#FFFFFF\">\r\n");
out.write(" <td nowrap>\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td nowrap> <font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\"><b>\r\n");
out.write(" </b></font><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\"><b><font color=\"#000099\">Login\r\n");
out.write(" :</font></b></font> </td>\r\n");
out.write(" <td nowrap>\r\n");
out.write(" <input type=\"text\" name=\"name\" size=\"16\" class=\"SystemBox\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td nowrap> <font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\"><b><font color=\"#000099\">Password\r\n");
out.write(" :</font></b></font> <font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-2\">\r\n");
out.write(" </font></td>\r\n");
out.write(" <td nowrap>\r\n");
out.write(" <input type=\"password\" name=\"password\" size=\"16\" class=\"SystemBox\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <br>\r\n");
out.write(" <br>\r\n");
out.write("<center>\r\n");
out.write(" <table border=\"0\" cellspacing=\"2\" cellpadding=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write(" <input type=\"submit\" name=\"SystemLogin\" value=\"Submit\" class=\"SystemButton\">\r\n");
out.write(" </td>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write(" <input type=\"reset\" value=\"Reset\" class=\"SystemButton\" name=\"reset\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write(" </center>\r\n");
out.write("</form>\r\n");
out.write("<p> </p>\r\n");
out.write("<p> </p>\r\n");
out.write("<p> </p>\r\n");
out.write("<p> </p>\r\n");
out.write("<p> </p>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\"><font color=\"#888888\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-2\">.jChatBox is free for non-commercial sites.</font></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>");
out.write("\r\n");
out.write("</body>\r\n");
out.write("</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 {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -