📄 forumdelete_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.net.*;
import ws.woa.core.*;
import ws.woa.util.*;
import ws.woa.forum.*;
public class ForumDelete_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=Shift_JIS");
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");
/**
* WOA Forum Management(Forum Delete)
*/
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
ws.woa.forum.ForumBean forum = null;
synchronized (request) {
forum = (ws.woa.forum.ForumBean) pageContext.getAttribute("forum", PageContext.REQUEST_SCOPE);
if (forum == null){
try {
forum = (ws.woa.forum.ForumBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.forum.ForumBean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "ws.woa.forum.ForumBean", exc);
}
pageContext.setAttribute("forum", forum, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n\r\n");
out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\nfunction submitConfirm(){\r\n return confirm('Delete?');\r\n}\r\n");
out.write("</SCRIPT>\r\n\r\n");
out.write("<h2>フォーラム管理");
out.write("</h2>\r\n\r\n");
out.write("<font class=\"alert\">Delete the following information?");
out.write("</font>");
out.write("<br>\r\n");
out.write("<br>\r\n\r\n");
out.write("<table border>\r\n");
out.write("<tr>\r\n ");
out.write("<th width=\"100\">Forum Name");
out.write("</th>\r\n ");
out.write("<td>");
out.print( StrUtil.tagFilter(forum.getForumName()) );
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n ");
out.write("<th>Forum Detail");
out.write("</th>\r\n ");
out.write("<td>");
out.print( StrUtil.tagFilter(forum.getForumDetail()) );
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<form action=\"forumadmin.module\" method=\"POST\" onsubmit=\"return submitConfirm()\">\r\n ");
out.write("<input type=\"submit\" value=\"Delete\">\r\n ");
out.write("<input type=\"button\" value=\"Go Back\" onclick=\"history.back()\">\r\n ");
out.write("<input type=\"hidden\" name=\"Action\" value=\"DEL_EXEC\">\r\n ");
out.write("<input type=\"hidden\" name=\"ForumID\" value=\"");
out.print( forum.getForumID() );
out.write("\">\r\n");
out.write("</form>\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 + -