/*
   Generated by JavaEmitter on Fri Oct 29 01:55:32 GMT 1999
   Please do not modify.
 */

import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class jsp___2fgnujsp_2ftestsuite_2fruntime1_2ejsp extends org.gjt.jsp.HttpJspPageImpl{

   public final long _gnujspGetTimestamp() {
      return 941162132705L;
   }
   private static final String[] _gnujspDeps = new String[] { "/gnujsp/testsuite/runtime1.jsp" };
   public final String[] _gnujspGetDeps() {
      return _gnujspDeps;
   }
   public final long _gnujspGetCompilerVersion() {
      return 1999101701L;
   }
   public void _jspService (HttpServletRequest  request,
                            HttpServletResponse response)
       throws ServletException, IOException
   {
       response.setContentType ("text/html");
       JspFactory  factory     = JspFactory.getDefaultFactory ();
       PageContext pageContext = factory.getPageContext (this,
                                  request,
                                  response,
                                  "errorpage.jsp",
                                  true,
                                  8192,
                                  true);
       HttpSession session   = pageContext.getSession ();
       ServletContext application = pageContext.getServletConfig().getServletContext();
       JspWriter   out       = pageContext.getOut ();
       ServletConfig config  = pageContext.getServletConfig();
       Object      page      = this;

       try {


// line:/gnujsp/testsuite/runtime1.jsp:1
out.print ("<html>\n  <body>\n");

// line:/gnujsp/testsuite/runtime1.jsp:4
out.print ("\n\t");
// line:/gnujsp/testsuite/runtime1.jsp:4#+
    org.gjt.jsp.test.NoMiniBean2 mybean = (org.gjt.jsp.test.NoMiniBean2)
       pageContext.getAttribute ("mybean", PageContext.PAGE_SCOPE);
    if (mybean == null) {
        mybean = new org.gjt.jsp.test.NoMiniBean2 ();
        if (mybean == null)
            throw new InstantiationException("jsp:useBean: could not instantiate bean: mybean");       pageContext.setAttribute ("mybean", mybean, PageContext.PAGE_SCOPE);
    }

// line:/gnujsp/testsuite/runtime1.jsp:5
out.print ("\nThe bug here is that class is not public, so setProperty\n     will fail with runtime error.\n<!-- name/property/param/value, name is missing here -->\n");
// line:/gnujsp/testsuite/runtime1.jsp:8
    org.gjt.jsp.HttpJspPageUtil.setProperty (mybean, "s", org.gjt.jsp.HttpJspPageUtil.objectify("value1"));

// line:/gnujsp/testsuite/runtime1.jsp:9
out.print ("\nValue: ");
// line:/gnujsp/testsuite/runtime1.jsp:9
out.print ( mybean.getS() );

// line:/gnujsp/testsuite/runtime1.jsp:10
out.print ("\n  </body>\n</html>\n");
        } catch (Exception e) {
             out.clearBuffer ();
             pageContext.handlePageException (e);
        } finally {
             out.close ();
             factory.releasePageContext (pageContext);
        }

   }

}
