[66] | 1 | package org.apache.jsp; |
---|
| 2 | |
---|
| 3 | import javax.servlet.*; |
---|
| 4 | import javax.servlet.http.*; |
---|
| 5 | import javax.servlet.jsp.*; |
---|
| 6 | import java.io.*; |
---|
| 7 | import java.util.*; |
---|
| 8 | |
---|
| 9 | public 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 | } |
---|