📄 voteselect_0002ejsp_jsp.java
字号:
package jsp.managerBack.vote;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import com.victor.domain.VoteActionForm;
import java.sql.*;
import java.util.List;
public class voteSelect_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-top:0px;\r\n\tmargin-left:0px;\r\n}\r\ntd{font-size:9pt;}\r\n-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<script Language=\"JavaScript\">\r\nfunction projectDelete(date){\r\nif(confirm(\"是否删除流水号为[\"+date+\"]的一组数据吗?\"))\r\nwindow.location=\"voteDeleteAction.do?ID=\"+date;\r\n}\r\n");
out.write("</script>\r\n");
List list=(List)request.getAttribute("voteList");
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 bgcolor=\"#FFFFFF\" align=\"center\" valign=\"top\"> ");
out.write("<br> \r\n ");
out.write("<br> \r\n ");
out.write("<br> \r\n ");
out.write("<p>");
out.write("<strong style=\"color:#FF9900\">新闻人物的全部信息");
out.write("</strong>");
out.write("</p> \r\n ");
out.write("<table width=\"520\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#052754\"> \r\n ");
out.write("<tr bgcolor=\"#0099cc\" align=\"center\"> \r\n ");
out.write("<td width=\"62\" height=\"24\"> 人物名称 ");
out.write("</td> \r\n ");
out.write("<td width=\"60\"> 人物籍贯 ");
out.write("</td> \r\n ");
out.write("<td width=\"60\"> 人物年龄 ");
out.write("</td> \r\n ");
out.write("<td width=\"76\"> 人物工作 ");
out.write("</td> \r\n ");
out.write("<td width=\"97\">简单介绍");
out.write("</td> \r\n ");
out.write("<td width=\"55\"> 投票数 ");
out.write("</td> \r\n ");
out.write("<td width=\"74\">操作");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
for (int i=0;i<list.size();i++){
VoteActionForm vote=(VoteActionForm)list.get(i);
out.write(" \r\n ");
out.write("<tr height=\"24\" bgcolor=\"#FFFFFF\"> \r\n ");
out.write("<td >");
out.print(vote.getName());
out.write("</td> \r\n ");
out.write("<td>");
out.print(vote.getAddress());
out.write("</td> \r\n ");
out.write("<td>");
out.print(vote.getCountry());
out.write("</td> \r\n ");
out.write("<td>");
out.print(vote.getJop());
out.write("</td> \r\n ");
out.write("<td>");
out.print(vote.getRemark());
out.write("</td> \r\n ");
out.write("<td>");
out.print(vote.getNumber());
out.write("</td> \r\n ");
out.write("<td align=\"center\">");
out.write("<a href=\"voteSelectOneAction.do?voteID=");
out.print(vote.getID());
out.write("\">修改");
out.write("</a> ");
out.write("<a href=\"javascript:projectDelete('");
out.print(vote.getID());
out.write("')\">删除");
out.write("</a>");
out.write("</td> \r\n ");
out.write("</tr> \r\n ");
}
out.write(" \r\n ");
out.write("</table> \r\n ");
out.write("<p>");
out.write("<a href=\"jsp\\managerBack\\vote\\voteInsert.jsp\">添加新闻人物信息");
out.write("</a>");
out.write("</p>");
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 + -