📄 voteupdate_0002ejsp_jsp.java
字号:
package jsp.managerBack.vote;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import java.util.List;
import com.victor.domain.VoteActionForm;
public class voteUpdate_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=GBK");
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("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n");
out.write("<title>修改新闻人物信息");
out.write("</title>\r\n");
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{font-size:9pt;}\r\n.style1 {\r\n\tcolor: #FF9900;\r\n\tfont-weight: bold;\r\n}\r\n-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<script language=\"JavaScript\">\r\nfunction RgTest(){\r\nif(document.form.voteName.value==\"\"){\r\nwindow.alert(\"请输入人物名称!\");\r\ndocument.form.voteName.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.address.value==\"\"){\r\nwindow.alert(\"请输入人物籍贯!\");\r\ndocument.form.address.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.country.value==\"\"){\r\nwindow.alert(\"请输入人物年龄!\");\r\ndocument.form.country.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.jop.value==\"\"){\r\nwindow.alert(\"请输入人物工作!\");\r\ndocument.form.jop.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.remark.value==\"\"){\r\nwindow.alert(\"请输入人物简单介绍!\");\r\ndocument.form.remark.focus();\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\n");
out.write("</script>\r\n");
List listVote=(List)request.getAttribute("list");
out.write("\r\n");
for (int i=0;i<listVote.size();i++){
VoteActionForm vote=(VoteActionForm)listVote.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\">\r\n\t");
out.write("<br>\r\n\t");
out.write("<br>\r\n\t");
out.write("<br>\r\n\t");
out.write("<strong style=\"color:#FF9900\">修改新闻人物信息");
out.write("</strong>\r\n\t");
out.write("<form action=\"voteUpdateAction.do?voteID=");
out.print(vote.getID());
out.write("\" onSubmit=\"return RgTest()\" method=\"post\" enctype=\"multipart/form-data\" name=\"form\">\r\n ");
out.write("<table width=\"390\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n \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=\"309\" bgcolor=\"#FFFFFF\">");
out.write("<input name=\"voteName\" type=\"text\" value=\"");
out.print(vote.getName());
out.write("\" size=\"26\">");
out.write("</td>\r\n ");
out.write("</tr>\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("<input name=\"address\" type=\"text\" value=\"");
out.print(vote.getAddress());
out.write("\" size=\"15\">");
out.write("</td>\r\n ");
out.write("</tr>\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("<input name=\"country\" type=\"text\" value=\"");
out.print(vote.getCountry());
out.write("\" size=\"15\"> ");
out.write("</td>\r\n ");
out.write("</tr>\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("<input name=\"jop\" type=\"text\" value=\"");
out.print(vote.getJop());
out.write("\" size=\"40\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"80\" align=\"center\" bgcolor=\"#0099cc\"> 简单介绍 ");
out.write("</td>\r\n ");
out.write("<td bgcolor=\"#FFFFFF\">");
out.write("<textarea name=\"remark\" cols=\"42\" rows=\"8\">");
out.write("</textarea>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<br>\r\n ");
}
out.write("\r\n\t ");
out.write("<input name=\"Submit2\" type=\"submit\" value=\"提交\">\r\n\t \r\n ");
out.write("<input name=\"Submit\" type=\"reset\" value=\"重置\">\r\n ");
out.write("</form>\t");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} 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 + -