📄 voteselect_0002ejsp_jsp.java
字号:
package jsp.frontNews;
import com.victor.domain.VoteActionForm;
import java.sql.*;
import java.util.List;
import com.victor.tool.SessionLib;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class voteSelect_0002ejsp_jsp extends HttpJspBase {
static {
}
public voteSelect_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/frontNews/voteSelect.jsp";from=(0,51);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(1,52);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(2,30);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(3,34);to=(4,0)]
out.write("\r\n");
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(4,46);to=(25,0)]
out.write("\r\n<html>\r\n<head>\r\n\r\n<title>查看新闻人物</title>\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}\r\ntd{\r\nfont-size:9pt;\r\n}\r\n.style1 {font-size: 11pt}\r\n.style2 {\tcolor: #FF9900;\r\n\tfont-weight: bold;\r\n\tfont-style: italic;\r\n}\r\n-->\r\n</style></head>\r\n");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(25,2);to=(25,51)]
List list=(List)request.getAttribute("voteList");
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(25,53);to=(40,2)]
out.write("\r\n<body>\r\n<table width=\"572\" height=\"740\" border=\"0\" align=\"left\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n <tr>\r\n <td width=\"571\" height=\"100\" align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\">\r\n\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td height=\"35\"> </td>\r\n </tr>\r\n <tr>\r\n <td background=\"jsp/images/line.jpg\"> ・<span class=\"style2\">查看新闻人物</span></td>\r\n </tr>\r\n </table>\r\n\t <br>\t <font style=\"font-size:11pt; \">\r\n <div align=\"center\">\r\n ");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(40,4);to=(43,0)]
SessionLib sl;
sl=(SessionLib)session.getValue(session.getId());
if(sl==null){
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(43,2);to=(53,0)]
out.write("\r\n <table width=\"543\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n <tr align=\"center\" bgcolor=\"#0099cc\">\r\n <td width=\"73\" height=\"20\">人物姓名</td>\r\n <td width=\"73\">人物籍贯</td>\r\n\t <td width=\"73\">人物年龄</td>\r\n\t <td width=\"73\">人物工作</td>\r\n\t\t <td width=\"73\">人物简介</td>\r\n <td width=\"103\">操作</td>\r\n </tr>\r\n");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(53,2);to=(55,0)]
for (int i=0;i<list.size();i++){
VoteActionForm vote=(VoteActionForm)list.get(i);
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(55,2);to=(57,22)]
out.write("\r\n <tr bgcolor=\"#FFFFFF\">\r\n <td height=\"24\">");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(57,25);to=(57,39)]
out.print(vote.getName());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(57,41);to=(58,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(58,13);to=(58,30)]
out.print(vote.getAddress());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(58,32);to=(59,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(59,13);to=(59,30)]
out.print(vote.getCountry());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(59,32);to=(60,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(60,13);to=(60,26)]
out.print(vote.getJop());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(60,28);to=(61,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(61,13);to=(61,29)]
out.print(vote.getRemark());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(61,31);to=(62,79)]
out.write("</td>\r\n <td align=\"center\"><form name=\"form\" method=\"post\" action=\"addVote.do?ID=");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(62,82);to=(62,94)]
out.print(vote.getID());
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(62,96);to=(66,0)]
out.write("\" >\r\n <input type=\"submit\" name=\"Submit\" value=\"投票\">\r\n </form></td>\r\n </tr>\r\n");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(66,2);to=(66,3)]
}
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(66,5);to=(67,0)]
out.write("\r\n");
// end
// begin [file="/jsp/frontNews/voteSelect.jsp";from=(67,2);to=(70,0)]
}else{
out.println("已经投票过了");
}
// end
// HTML // begin [file="/jsp/frontNews/voteSelect.jsp";from=(70,2);to=(76,7)]
out.write("\r\n </table>\r\n </td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>");
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -