?? newsdelete_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.news.*;
public class NewsDelete_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 ニュース管理(ニュース削除確認)
*/
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
ws.woa.news.NewsBean news = null;
synchronized (request) {
news = (ws.woa.news.NewsBean) pageContext.getAttribute("news", PageContext.REQUEST_SCOPE);
if (news == null){
try {
news = (ws.woa.news.NewsBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.news.NewsBean");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "ws.woa.news.NewsBean", exc);
}
pageContext.setAttribute("news", news, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n\r\n");
out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\n//////////////////////////////////////////////////////\r\n// 送信時の確認\r\nfunction submitConfirm(){\r\n return confirm('削除します。よろしいですか?');\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\">以下のニュースを削除してよろしいですか?");
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\">件名");
out.write("</th>\r\n ");
out.write("<td>");
out.print( StrUtil.tagFilter(news.getSubject()) );
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n ");
out.write("<th>本文");
out.write("</th>\r\n ");
out.write("<td>");
out.print( StrUtil.tagFilter(news.getContent()) );
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<form action=\"newsadmin.module\" method=\"POST\" onsubmit=\"return submitConfirm()\">\r\n ");
out.write("<input type=\"submit\" value=\" 削 除 \">\r\n ");
out.write("<input type=\"button\" value=\" 戻 る \" onclick=\"history.back()\">\r\n ");
out.write("<input type=\"hidden\" name=\"Action\" value=\"DEL_EXEC\">\r\n ");
out.write("<input type=\"hidden\" name=\"NewsID\" value=\"");
out.print( news.getNewsID() );
out.write("\">\r\n ");
out.write("<input type=\"hidden\" name=\"Page\" value=\"");
out.print( StrUtil.tagFilter(request.getParameter("Page")) );
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 + -