Save This Page
Home » java-openid-sxip-0.9.4.339 » org.apache.jsp » [javadoc | source]
    1   package org.apache.jsp;
    2   
    3   import javax.servlet;
    4   import javax.servlet.http;
    5   import javax.servlet.jsp;
    6   
    7   public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    8       implements org.apache.jasper.runtime.JspSourceDependent {
    9   
   10     private static java.util.Vector _jspx_dependants;
   11   
   12     private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
   13   
   14     public Object getDependants() {
   15       return _jspx_dependants;
   16     }
   17   
   18     public void _jspService(HttpServletRequest request, HttpServletResponse response)
   19           throws java.io.IOException, ServletException {
   20   
   21       JspFactory _jspxFactory = null;
   22       PageContext pageContext = null;
   23       HttpSession session = null;
   24       ServletContext application = null;
   25       ServletConfig config = null;
   26       JspWriter out = null;
   27       Object page = this;
   28       JspWriter _jspx_out = null;
   29       PageContext _jspx_page_context = null;
   30   
   31   
   32       try {
   33         _jspxFactory = JspFactory.getDefaultFactory();
   34         response.setContentType("text/html");
   35         pageContext = _jspxFactory.getPageContext(this, request, response,
   36         			null, true, 8192, true);
   37         _jspx_page_context = pageContext;
   38         application = pageContext.getServletContext();
   39         config = pageContext.getServletConfig();
   40         session = pageContext.getSession();
   41         out = pageContext.getOut();
   42         _jspx_out = out;
   43         _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
   44   
   45         out.write("\r\n");
   46         out.write("<html>\n");
   47         out.write("<body>\n");
   48   
   49       if (request.getParameter("logout")!=null)
   50       {
   51           session.removeAttribute("openid");
   52           session.removeAttribute("openid-claimed");
   53   
   54         out.write("\r\n");
   55         out.write("    Logged out!<p>\r\n");
   56   
   57       }
   58   	if (session.getAttribute("openid")==null) {
   59   
   60         out.write("\n");
   61         out.write("<form method=\"POST\" action=\"consumer_redirect.jsp\">\n");
   62         out.write("<strong>OpenID:</strong>\n");
   63         out.write("<input type=\"text\" name=\"openid\" width=\"30\"/><br>\n");
   64         out.write("<input type=\"submit\"/>\n");
   65         out.write("</form>\n");
   66   	
   67   } else {
   68   
   69   
   70         out.write("\n");
   71         out.write("Logged in as ");
   72         out.print( session.getAttribute("openid") );
   73         out.write("<p>\r\n");
   74         out.write("<a href=\"?logout=true\">Log out</a>\n");
   75         out.write("\n");
   76    } 
   77         out.write("\n");
   78         out.write("</body>\n");
   79         out.write("</html>\n");
   80       } catch (Throwable t) {
   81         if (!(t instanceof SkipPageException)){
   82           out = _jspx_out;
   83           if (out != null && out.getBufferSize() != 0)
   84             out.clearBuffer();
   85           if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
   86         }
   87       } finally {
   88         if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
   89       }
   90     }
   91   }

Save This Page
Home » java-openid-sxip-0.9.4.339 » org.apache.jsp » [javadoc | source]