📄 updatevirtualhost_jsp.java
字号:
package org.apache.jsp.services;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import bean.VirtualHostBean;
public final class updatevirtualhost_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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=GBK");
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\t\r\n\r\n\r\n");
if (session.getAttribute("userName") == null) {
response.sendRedirect("login.jsp");
}
out.write("\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\" />\r\n<title>修改虚拟主机信息</title>\r\n\r\n<script language=\"JavaScript\">\r\n<!--\r\nfunction validateCompose(){ \r\n\tvar hostPrice1 = document.all.hostPrice1.value;\r\n\tvar hostNote = document.all.hostNote.value;\r\n\tif (hostPrice1 ==\"\"){\r\n\t\talert(\"必须填写虚拟主机单价信息!\");\r\n\t\treturn false;\r\n\t}\r\n\tif (hostNote ==\"\"){\r\n\t\talert(\"必须填写备注信息!\");\r\n\t\treturn false;\r\n\t}\r\n\treturn true;\r\n}\r\n\r\n-->\r\n</script>\r\n\r\n<style type=\"text/css\">\r\n<!--\r\n.STYLE1 {font-size: x-large}\r\n-->\r\n</style>\r\n</head>\r\n\r\n<body>\r\n<div align=\"center\" >\r\n \r\n<form name=\"form1\" method=\"post\" action=\"/wyweb/UpdateVirtualHostServlet\" onSubmit=\"return validateCompose();\" >\r\n <table width=\"61%\" height=\"218\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n \r\n ");
if (request.getAttribute("msg") == null) {
out.write("\r\n\t<tr>\r\n\t\t<td width=\"100%\" align=center colspan=\"2\" height=\"30\"\r\n\t\t\tbgcolor=\"#0000FF\"><font color=\"#FFFFFF\"><b>不存在该虚拟主机信息!</b></font></td>\r\n\t</tr>\r\n\t");
} else {
VirtualHostBean msg = (VirtualHostBean) request.getAttribute("msg");
out.write("\r\n\t<tr>\r\n\t\t<td width=\"100%\" align=center colspan=\"2\" height=\"30\"\r\n\t\t\tbgcolor=\"#0000FF\"><font color=\"#FFFFFF\"><b>修改虚拟主机信息</b></font></td>\r\n\t</tr>\r\n \r\n <tr>\r\n <td width=\"21%\">主机类型</td>\r\n <td width=\"79%\"><select name=\"hostSort\" value=\"");
out.print(msg.getHostClass() );
out.write("\" >\r\n <option selected=\"selected\">主机1</option>\r\n <option>主机2</option>\r\n <option>主机3</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>主机价格</td>\r\n <td><input type=\"text\" name=\"hostPrice\" value=\"");
out.print(msg.getHostPrice() );
out.write("\" /> 元</td>\r\n </tr>\r\n <tr>\r\n <td height=\"88\">备注</td>\r\n <td><textarea name=\"hostNote\" cols=\"50\" rows=\"20\">");
out.print(msg.getNote() );
out.write("</textarea></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><table width=\"30%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"50%\" height=\"19\"><div align=\"center\">\r\n <input type=\"hidden\" name=\"id\" value=\"");
out.print(msg.getHostID() );
out.write("\" />\r\n <input type=\"submit\" name=\"Submit\" value=\"确定\" />\r\n </div></td>\r\n <td width=\"50%\"><div align=\"center\">\r\n <input type=\"reset\" name=\"reset\" value=\"重置\" />\r\n </div></td>\r\n </tr>\r\n ");
}
out.write("\r\n </table></td>\r\n </tr>\r\n </table>\r\n</form>\r\n</div>\r\n<p> </p>\r\n</body>\r\n\r\n</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 {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -