KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jsp > xmlPubli_jsp


1 package org.apache.jsp;
2
3 import javax.servlet.*;
4 import javax.servlet.http.*;
5 import javax.servlet.jsp.*;
6 import org.apache.jasper.runtime.*;
7
8 public class xmlPubli_jsp extends HttpJspBase {
9
10
11   private static java.util.Vector JavaDoc _jspx_includes;
12
13   public java.util.List JavaDoc getIncludes() {
14     return _jspx_includes;
15   }
16
17   public void _jspService(HttpServletRequest request, HttpServletResponse response)
18         throws java.io.IOException JavaDoc, ServletException {
19
20     JspFactory _jspxFactory = null;
21     javax.servlet.jsp.PageContext JavaDoc pageContext = null;
22     HttpSession session = null;
23     ServletContext application = null;
24     ServletConfig config = null;
25     JspWriter out = null;
26     Object JavaDoc page = this;
27     JspWriter _jspx_out = null;
28
29
30     try {
31       _jspxFactory = JspFactory.getDefaultFactory();
32       response.setContentType("text/html;charset=ISO-8859-1");
33       pageContext = _jspxFactory.getPageContext(this, request, response,
34                 null, true, 8192, true);
35       application = pageContext.getServletContext();
36       config = pageContext.getServletConfig();
37       session = pageContext.getSession();
38       out = pageContext.getOut();
39       _jspx_out = out;
40
41       out.write("\r\n\r\n");
42 response.setContentType("text/xml");
43       out.write("\r\n\r\n");
44       out.print(request.getAttribute("xml"));
45       out.write("\r\n");
46     } catch (Throwable JavaDoc t) {
47       out = _jspx_out;
48       if (out != null && out.getBufferSize() != 0)
49         out.clearBuffer();
50       if (pageContext != null) pageContext.handlePageException(t);
51     } finally {
52       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
53     }
54   }
55 }
56
Popular Tags