|
| 1 | +/* |
| 2 | + * Generated by the Jasper component of Apache Tomcat |
| 3 | + * Version: Apache Tomcat/11.0.2 |
| 4 | + * Generated at: 2026-06-29 00:13:29 UTC |
| 5 | + * Note: The last modified time of this file was set to |
| 6 | + * the last modified time of the source file after |
| 7 | + * generation to assist with modification tracking. |
| 8 | + */ |
| 9 | +package org.apache.jsp; |
| 10 | + |
| 11 | +import jakarta.servlet.*; |
| 12 | +import jakarta.servlet.http.*; |
| 13 | +import jakarta.servlet.jsp.*; |
| 14 | + |
| 15 | +public final class guest_jsp extends org.apache.jasper.runtime.HttpJspBase |
| 16 | + implements org.apache.jasper.runtime.JspSourceDependent, |
| 17 | + org.apache.jasper.runtime.JspSourceImports, |
| 18 | + org.apache.jasper.runtime.JspSourceDirectives { |
| 19 | + |
| 20 | + private static final jakarta.servlet.jsp.JspFactory _jspxFactory = |
| 21 | + jakarta.servlet.jsp.JspFactory.getDefaultFactory(); |
| 22 | + |
| 23 | + private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; |
| 24 | + |
| 25 | + private static final java.util.Set<java.lang.String> _jspx_imports_packages; |
| 26 | + |
| 27 | + private static final java.util.Set<java.lang.String> _jspx_imports_classes; |
| 28 | + |
| 29 | + static { |
| 30 | + _jspx_imports_packages = new java.util.LinkedHashSet<>(4); |
| 31 | + _jspx_imports_packages.add("jakarta.servlet"); |
| 32 | + _jspx_imports_packages.add("jakarta.servlet.http"); |
| 33 | + _jspx_imports_packages.add("jakarta.servlet.jsp"); |
| 34 | + _jspx_imports_classes = null; |
| 35 | + } |
| 36 | + |
| 37 | + private volatile jakarta.el.ExpressionFactory _el_expressionfactory; |
| 38 | + private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager; |
| 39 | + |
| 40 | + public java.util.Map<java.lang.String,java.lang.Long> getDependants() { |
| 41 | + return _jspx_dependants; |
| 42 | + } |
| 43 | + |
| 44 | + public java.util.Set<java.lang.String> getPackageImports() { |
| 45 | + return _jspx_imports_packages; |
| 46 | + } |
| 47 | + |
| 48 | + public java.util.Set<java.lang.String> getClassImports() { |
| 49 | + return _jspx_imports_classes; |
| 50 | + } |
| 51 | + |
| 52 | + public boolean getErrorOnELNotFound() { |
| 53 | + return false; |
| 54 | + } |
| 55 | + |
| 56 | + public jakarta.el.ExpressionFactory _jsp_getExpressionFactory() { |
| 57 | + if (_el_expressionfactory == null) { |
| 58 | + synchronized (this) { |
| 59 | + if (_el_expressionfactory == null) { |
| 60 | + _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | + return _el_expressionfactory; |
| 65 | + } |
| 66 | + |
| 67 | + public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() { |
| 68 | + if (_jsp_instancemanager == null) { |
| 69 | + synchronized (this) { |
| 70 | + if (_jsp_instancemanager == null) { |
| 71 | + _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + return _jsp_instancemanager; |
| 76 | + } |
| 77 | + |
| 78 | + public void _jspInit() { |
| 79 | + } |
| 80 | + |
| 81 | + public void _jspDestroy() { |
| 82 | + } |
| 83 | + |
| 84 | + public void _jspService(final jakarta.servlet.http.HttpServletRequest request, final jakarta.servlet.http.HttpServletResponse response) |
| 85 | + throws java.io.IOException, jakarta.servlet.ServletException { |
| 86 | + |
| 87 | + if (!jakarta.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { |
| 88 | + final java.lang.String _jspx_method = request.getMethod(); |
| 89 | + if ("OPTIONS".equals(_jspx_method)) { |
| 90 | + response.setHeader("Allow","GET, HEAD, POST, OPTIONS"); |
| 91 | + return; |
| 92 | + } |
| 93 | + if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method)) { |
| 94 | + response.setHeader("Allow","GET, HEAD, POST, OPTIONS"); |
| 95 | + response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET, POST or HEAD. Jasper also permits OPTIONS"); |
| 96 | + return; |
| 97 | + } |
| 98 | + } |
| 99 | + |
| 100 | + final jakarta.servlet.jsp.PageContext pageContext; |
| 101 | + jakarta.servlet.http.HttpSession session = null; |
| 102 | + final jakarta.servlet.ServletContext application; |
| 103 | + final jakarta.servlet.ServletConfig config; |
| 104 | + jakarta.servlet.jsp.JspWriter out = null; |
| 105 | + final java.lang.Object page = this; |
| 106 | + jakarta.servlet.jsp.JspWriter _jspx_out = null; |
| 107 | + jakarta.servlet.jsp.PageContext _jspx_page_context = null; |
| 108 | + |
| 109 | + |
| 110 | + try { |
| 111 | + response.setContentType("text/html;charset=UTF-8"); |
| 112 | + pageContext = _jspxFactory.getPageContext(this, request, response, |
| 113 | + null, true, 8192, true); |
| 114 | + _jspx_page_context = pageContext; |
| 115 | + application = pageContext.getServletContext(); |
| 116 | + config = pageContext.getServletConfig(); |
| 117 | + session = pageContext.getSession(); |
| 118 | + out = pageContext.getOut(); |
| 119 | + _jspx_out = out; |
| 120 | + |
| 121 | + out.write('\n'); |
| 122 | + |
| 123 | + // Set guest cookie for 24 hours |
| 124 | + Cookie guestCookie = null; |
| 125 | + for (Cookie c : request.getCookies() != null ? request.getCookies() : new Cookie[0]) { |
| 126 | + if ("bma_guest".equals(c.getName())) { guestCookie = c; break; } |
| 127 | + } |
| 128 | + if (guestCookie == null) { |
| 129 | + guestCookie = new Cookie("bma_guest", String.valueOf(System.currentTimeMillis())); |
| 130 | + guestCookie.setMaxAge(60 * 60 * 24); |
| 131 | + guestCookie.setPath("/"); |
| 132 | + response.addCookie(guestCookie); |
| 133 | + } |
| 134 | + String clientIp = request.getHeader("X-Forwarded-For"); |
| 135 | + if (clientIp == null || clientIp.isEmpty()) clientIp = request.getRemoteAddr(); |
| 136 | + |
| 137 | + out.write("\n"); |
| 138 | + out.write("<!DOCTYPE html>\n"); |
| 139 | + out.write("<html lang=\"en\">\n"); |
| 140 | + out.write("<head>\n"); |
| 141 | + out.write(" <meta charset=\"UTF-8\"/>\n"); |
| 142 | + out.write(" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n"); |
| 143 | + out.write(" <link rel=\"icon\" type=\"image/png\" href=\"images/favicon.png\"/>\n"); |
| 144 | + out.write(" <title>Guest — Brarner.M.Alete™</title>\n"); |
| 145 | + out.write(" <link rel=\"stylesheet\" href=\"css/style.css\"/>\n"); |
| 146 | + out.write("</head>\n"); |
| 147 | + out.write("<body>\n"); |
| 148 | + out.write("<nav class=\"nav\"><div class=\"nav-inner\">\n"); |
| 149 | + out.write(" <a href=\"index.jsp\" class=\"nav-brand\"><img src=\"images/mearvk.ltd.logo.left.png\" alt=\"\" style=\"height:40px;vertical-align:middle;margin-right:8px;background:transparent;\"/>Brarner.M.Alete™<img src=\"images/mearvk.ltd.logo.right.png\" alt=\"\" style=\"height:40px;vertical-align:middle;margin-left:8px;background:transparent;\"/></a>\n"); |
| 150 | + out.write(" <ul class=\"nav-links\">\n"); |
| 151 | + out.write(" <li><a href=\"index.jsp\">Overview</a></li>\n"); |
| 152 | + out.write(" <li><a href=\"species.jsp\">Species</a></li>\n"); |
| 153 | + out.write(" <li><a href=\"postal.jsp\">Postal</a></li>\n"); |
| 154 | + out.write(" <li><a href=\"art.jsp\">Art</a></li>\n"); |
| 155 | + out.write(" <li><a href=\"science.jsp\">Science</a></li>\n"); |
| 156 | + out.write(" <li><a href=\"status.jsp\">Status</a></li>\n"); |
| 157 | + out.write(" </ul>\n"); |
| 158 | + out.write(" <div class=\"nav-actions\">\n"); |
| 159 | + out.write(" <span class=\"nav-cta\" style=\"opacity:0.7;cursor:default;\">Guest</span>\n"); |
| 160 | + out.write(" <a href=\"register.jsp\" class=\"nav-cta\">Register</a>\n"); |
| 161 | + out.write(" <a href=\"admin/login.xhtml\" class=\"nav-cta\">Admin →</a>\n"); |
| 162 | + out.write(" </div>\n"); |
| 163 | + out.write("</div></nav>\n"); |
| 164 | + out.write("\n"); |
| 165 | + out.write("<section class=\"hero\" style=\"padding:4rem 2rem;\">\n"); |
| 166 | + out.write(" <div class=\"hero-inner\">\n"); |
| 167 | + out.write(" <span class=\"hero-tag\">Guest Access</span>\n"); |
| 168 | + out.write(" <h1>Welcome, Guest</h1>\n"); |
| 169 | + out.write(" <p>You are remembered by cookie for <strong>24 hours</strong>.</p>\n"); |
| 170 | + out.write(" <p style=\"margin-top:1rem;color:#a1a1aa;\">Your IP: <code style=\"color:#3b82f6;\">"); |
| 171 | + out.print( clientIp ); |
| 172 | + out.write("</code></p>\n"); |
| 173 | + out.write(" </div>\n"); |
| 174 | + out.write("</section>\n"); |
| 175 | + out.write("\n"); |
| 176 | + out.write("<footer class=\"footer\"><div class=\"footer-bottom\">\n"); |
| 177 | + out.write(" <span>© 2026 MEARVK LLC. All rights reserved.</span>\n"); |
| 178 | + out.write("</div></footer>\n"); |
| 179 | + out.write("</body>\n"); |
| 180 | + out.write("</html>\n"); |
| 181 | + } catch (java.lang.Throwable t) { |
| 182 | + if (!(t instanceof jakarta.servlet.jsp.SkipPageException)){ |
| 183 | + out = _jspx_out; |
| 184 | + if (out != null && out.getBufferSize() != 0) |
| 185 | + try { |
| 186 | + if (response.isCommitted()) { |
| 187 | + out.flush(); |
| 188 | + } else { |
| 189 | + out.clearBuffer(); |
| 190 | + } |
| 191 | + } catch (java.io.IOException e) {} |
| 192 | + if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); |
| 193 | + else throw new ServletException(t); |
| 194 | + } |
| 195 | + } finally { |
| 196 | + _jspxFactory.releasePageContext(_jspx_page_context); |
| 197 | + } |
| 198 | + } |
| 199 | +} |
0 commit comments