北大青鸟学生作品
源代码在线查看: test_jsp.java
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import src.*;
public final class test_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\r\n\r\n\r\nT12班留言版\r\n\r\n@import url(images/table.css);\r\n\r\n\r\n\r\n \r\n\r\n\r\n \r\n T12班留言班\r\n \r\n \r\n 班级话题\r\n 作者\r\n 发表时间\r\n 删除\r\n \r\n\r\n\r\n");
// String name = (String) request.getSession().getAttribute("stname"); //得到登录名
String name="fanxing";
List list = MyDb.getAllInfo();
for (int i = 0; i < list.size(); i++) {
InfoBean a = list.get(i);
if (i % 2 == 0) { //奇偶行不同行
out.println("");
}
else {
out.println("");
}
out.println(" " src='images\\down.gif' class=dian> " +
a.getMtopic());
out.println(" " + a.getStname());
out.println(" " + a.getMdate());
if (a.getStname().equals(name)) {
out.println("[删除]");
}
else {
out.println("[ ]");
}
out.println("");
out.println(" " style='display:None;background-color:#ffffff;'>");
out.println("" + a.getMinfo());
out.println("");
out.println("");
}
out.write("\r\n \r\n\r\n \r\n 主题:\r\n \r\n 内容:\r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n\r\n\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);
}
}
}