helloworld.java
※太字は helloworld.jsp のときの記述です。
0001 package org.apache.jsp;
0002
0003 import javax.servlet.*;
0004 import javax.servlet.http.*;
0005 import javax.servlet.jsp.*;
0006 import org.apache.jasper.runtime.*;
0007
0008 public class helloworld_jsp extends HttpJspBase {
0009
0010
0011 private static java.util.Vector _jspx_includes;
0012
0013 public java.util.List getIncludes() {
0014 return _jspx_includes;
0015 }
0016
0017 public void _jspService(HttpServletRequest request, HttpServletResponse response)
0018 throws java.io.IOException, ServletException {
0019
0020 JspFactory _jspxFactory = null;
0021 javax.servlet.jsp.PageContext pageContext = null;
0022 HttpSession session = null;
0023 ServletContext application = null;
0024 ServletConfig config = null;
0025 JspWriter out = null;
0026 Object page = this;
0027 JspWriter _jspx_out = null;
0028
0029
0030 try {
0031 _jspxFactory = JspFactory.getDefaultFactory();
0032 response.setContentType("text/html;charset=ISO-8859-1");
0033 pageContext = _jspxFactory.getPageContext(this, request, response,
0034 null, true, 8192, true);
0035 application = pageContext.getServletContext();
0036 config = pageContext.getServletConfig();
0037 session = pageContext.getSession();
0038 out = pageContext.getOut();
0039 _jspx_out = out;
0040
0041 out.write("<!-- SANNOMIYA 2002.09.25 MAKE -->\r\n");
0042 out.write("<html>\r\n");
0043 out.write("<head>\r\n");
0044 out.write("<title>Hello World JSP");
0045 out.write("</title>\r\n");
0046 out.write("</head>\r\n");
0047 out.write("<body>\r\n");
0048
0049 String s= "Hello World";
0050 out.println(s);
0051 out.write("\r\n");
0052 out.write("<body>\r\n");
0053 out.write("<html>\r\n");
0054 } catch (Throwable t) {
0055 out = _jspx_out;
0056 if (out != null && out.getBufferSize() != 0)
0057 out.clearBuffer();
0058 if (pageContext != null) pageContext.handlePageException(t);
0059 } finally {
0060 if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
0061 }
0062 }
0063 }