home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / repeat_jsp$repeat_jspHelper.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-05-17  |  2.5 KB  |  60 lines

  1. package org.apache.jsp.jsp2.simpletag;
  2.  
  3. import java.io.Writer;
  4. import javax.servlet.jsp.JspContext;
  5. import javax.servlet.jsp.JspException;
  6. import javax.servlet.jsp.JspWriter;
  7. import javax.servlet.jsp.SkipPageException;
  8. import javax.servlet.jsp.tagext.JspTag;
  9. import org.apache.jasper.runtime.JspFragmentHelper;
  10. import org.apache.jasper.runtime.PageContextImpl;
  11. import org.apache.jasper.runtime.ProtectedFunctionMapper;
  12.  
  13. class repeat_jsp$repeat_jspHelper extends JspFragmentHelper {
  14.    private JspTag _jspx_parent;
  15.    private int[] _jspx_push_body_count;
  16.    // $FF: synthetic field
  17.    private final repeat_jsp this$0;
  18.  
  19.    public repeat_jsp$repeat_jspHelper(repeat_jsp this$0, int discriminator, JspContext jspContext, JspTag _jspx_parent, int[] _jspx_push_body_count) {
  20.       super(discriminator, jspContext, _jspx_parent);
  21.       this.this$0 = this$0;
  22.       this._jspx_parent = _jspx_parent;
  23.       this._jspx_push_body_count = _jspx_push_body_count;
  24.    }
  25.  
  26.    public void invoke0(JspWriter out) throws Throwable {
  27.       out.write("\r\n      Invocation ");
  28.       out.write((String)PageContextImpl.proprietaryEvaluate("${count}", repeat_jsp.class$java$lang$String == null ? (repeat_jsp.class$java$lang$String = repeat_jsp.class$("java.lang.String")) : repeat_jsp.class$java$lang$String, this._jspx_page_context, (ProtectedFunctionMapper)null, false));
  29.       out.write(" of 5<br>\r\n    ");
  30.    }
  31.  
  32.    public void invoke(Writer writer) throws JspException {
  33.       JspWriter out = null;
  34.       if (writer != null) {
  35.          out = this.jspContext.pushBody(writer);
  36.       } else {
  37.          out = this.jspContext.getOut();
  38.       }
  39.  
  40.       try {
  41.          switch (this.discriminator) {
  42.             case 0:
  43.                this.invoke0(out);
  44.          }
  45.       } catch (Throwable e) {
  46.          if (e instanceof SkipPageException) {
  47.             throw (SkipPageException)e;
  48.          }
  49.  
  50.          throw new JspException(e);
  51.       } finally {
  52.          if (writer != null) {
  53.             this.jspContext.popBody();
  54.          }
  55.  
  56.       }
  57.  
  58.    }
  59. }
  60.