source: nutchez-0.1/tomcat/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java @ 66

Last change on this file since 66 was 66, checked in by waue, 15 years ago

NutchEz - an easy way to nutch

File size: 2.4 KB
Line 
1package org.apache.jsp;
2
3import javax.servlet.*;
4import javax.servlet.http.*;
5import javax.servlet.jsp.*;
6import java.io.*;
7import java.util.*;
8
9public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
10    implements org.apache.jasper.runtime.JspSourceDependent {
11
12  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
13
14  private static java.util.List _jspx_dependants;
15
16  private javax.el.ExpressionFactory _el_expressionfactory;
17  private org.apache.AnnotationProcessor _jsp_annotationprocessor;
18
19  public Object getDependants() {
20    return _jspx_dependants;
21  }
22
23  public void _jspInit() {
24    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
25    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
26  }
27
28  public void _jspDestroy() {
29  }
30
31  public void _jspService(HttpServletRequest request, HttpServletResponse response)
32        throws java.io.IOException, ServletException {
33
34    PageContext pageContext = null;
35    ServletContext application = null;
36    ServletConfig config = null;
37    JspWriter out = null;
38    Object page = this;
39    JspWriter _jspx_out = null;
40    PageContext _jspx_page_context = null;
41
42
43    try {
44      response.setContentType("text/html");
45      pageContext = _jspxFactory.getPageContext(this, request, response,
46            null, false, 8192, true);
47      _jspx_page_context = pageContext;
48      application = pageContext.getServletContext();
49      config = pageContext.getServletConfig();
50      out = pageContext.getOut();
51      _jspx_out = out;
52
53      out.write('\n');
54
55  String language =
56    ResourceBundle.getBundle("org.nutch.jsp.search", request.getLocale())
57    .getLocale().getLanguage();
58  String requestURI = HttpUtils.getRequestURL(request).toString();
59  String base = requestURI.substring(0, requestURI.lastIndexOf('/'));
60  response.sendRedirect(language + "/");
61
62      out.write('\n');
63    } catch (Throwable t) {
64      if (!(t instanceof SkipPageException)){
65        out = _jspx_out;
66        if (out != null && out.getBufferSize() != 0)
67          try { out.clearBuffer(); } catch (java.io.IOException e) {}
68        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
69      }
70    } finally {
71      _jspxFactory.releasePageContext(_jspx_page_context);
72    }
73  }
74}
Note: See TracBrowser for help on using the repository browser.