📄 post_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class post_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
String Note_Title,Note_Content,Board_Name,sql;
private static java.util.List _jspx_dependants;
public Object 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=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"err.jsp", 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');
out.write('\n');
yy.jdbc yy = null;
synchronized (_jspx_page_context) {
yy = (yy.jdbc) _jspx_page_context.getAttribute("yy", PageContext.PAGE_SCOPE);
if (yy == null){
yy = new yy.jdbc();
_jspx_page_context.setAttribute("yy", yy, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
if (session.getValue("UserName")==null)
{
response.sendRedirect("err.jsp?id=5");
}
out.write('\r');
out.write('\n');
out.write('\r');
out.write('\n');
String Board_id=request.getParameter("fid");
String Note_id=request.getParameter("noteid");
String Return_id=request.getParameter("Returnid");
Connection con=yy.getConn();
Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ResultSet rs=null;
if (Note_id!=null)
{
sql="Select 贴子内容 from 贴子 Where 贴子id="+Note_id;
rs=stmt.executeQuery(sql);
while (rs.next())
Note_Content=rs.getString("贴子内容");
}else
Note_Content="";
if (Note_id!=null)
Note_Content="[quote]"+Note_Content +"[/quote]";
if (Return_id!=null)
{
sql="Select 贴子名称 from 贴子 Where 贴子id="+Return_id;
rs=stmt.executeQuery(sql);
while (rs.next())
Note_Title="回复:"+rs.getString("贴子名称");
}else
Note_Title="";
sql="Select 论坛名称 From 论坛栏目 Where 论坛id="+Board_id;
//out.println(sql);
rs=stmt.executeQuery(sql);
while (rs.next())
Board_Name=rs.getString("论坛名称");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html><script language=\"JavaScript\"></script></html>\r\n");
out.write("<html><script language=\"JavaScript\"></script></html>\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<link rel='stylesheet' type='text/css' href='inc/FORUM.CSS'>\r\n");
out.write("<META NAME=\"keywords\" CONTENT=\"溢洋 溢洋论坛 xyworker@163.com java forum jsp forum\">\r\n");
out.write("<META NAME=\"description\" CONTENT=\"溢洋 溢洋论坛 xyworker@163.com java forum jsp forum\">\r\n");
out.write("<script language=\"JavaScript\">\r\n");
out.write("function Popup(url, window_name, window_width, window_height)\r\n");
out.write("{ settings=\r\n");
out.write("\"toolbar=no,location=no,directories=no,\"+\r\n");
out.write("\"status=no,menubar=no,scrollbars=yes,\"+\r\n");
out.write("\"resizable=yes,width=\"+window_width+\",height=\"+window_height;\r\n");
out.write("\r\n");
out.write("NewWindow=window.open(url,window_name,settings); }\r\n");
out.write("\r\n");
out.write("function icon(theicon) {\r\n");
out.write("document.input.content.value += \" \"+theicon;\r\n");
out.write("document.input.content.focus();\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("\r\n");
out.write("<title>溢洋论坛</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("</head>\r\n");
out.write("<body text=\"#0000ff\" >\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "inc/public.jsp", out, true);
out.write("\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -