001 package org.apache.jsp.tag.web;
002
003 import javax.servlet.*;
004 import javax.servlet.http.*;
005 import javax.servlet.jsp.*;
006
007 public final class panel_tag
008 extends javax.servlet.jsp.tagext.SimpleTagSupport
009 implements org.apache.jasper.runtime.JspSourceDependent {
010
011
012 private static java.util.List _jspx_dependants;
013
014 private JspContext jspContext;
015 private java.io.Writer _jspx_sout;
016 public void setJspContext(JspContext ctx) {
017 super.setJspContext(ctx);
018 java.util.ArrayList _jspx_nested = null;
019 java.util.ArrayList _jspx_at_begin = null;
020 java.util.ArrayList _jspx_at_end = null;
021 this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
022 }
023
024 public JspContext getJspContext() {
025 return this.jspContext;
026 }
027 private java.lang.String color;
028 private java.lang.String bgcolor;
029 private java.lang.String title;
030
031 public java.lang.String getColor() {
032 return this.color;
033 }
034
035 public void setColor(java.lang.String color) {
036 this.color = color;
037 }
038
039 public java.lang.String getBgcolor() {
040 return this.bgcolor;
041 }
042
043 public void setBgcolor(java.lang.String bgcolor) {
044 this.bgcolor = bgcolor;
045 }
046
047 public java.lang.String getTitle() {
048 return this.title;
049 }
050
051 public void setTitle(java.lang.String title) {
052 this.title = title;
053 }
054
055 public Object getDependants() {
056 return _jspx_dependants;
057 }
058
059 public void doTag() throws JspException, java.io.IOException {
060 PageContext _jspx_page_context = (PageContext)jspContext;
061 HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
062 HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
063 HttpSession session = _jspx_page_context.getSession();
064 ServletContext application = _jspx_page_context.getServletContext();
065 ServletConfig config = _jspx_page_context.getServletConfig();
066 JspWriter out = jspContext.getOut();
067 if( getColor() != null )
068 _jspx_page_context.setAttribute("color", getColor());
069 if( getBgcolor() != null )
070 _jspx_page_context.setAttribute("bgcolor", getBgcolor());
071 if( getTitle() != null )
072 _jspx_page_context.setAttribute("title", getTitle());
073
074 try {
075 out.write("<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contributor license agreements. See the NOTICE file distributed with\n this work for additional information regarding copyright ownership.\n The ASF licenses this file to You under the Apache License, Version 2.0\n (the \"License\"); you may not use this file except in compliance with\n the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n\n\n\n<table border=\"1\" bgcolor=\"");
076 out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${color}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
077 out.write("\">\n <tr>\n <td><b>");
078 out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${title}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
079 out.write("</b></td>\n </tr>\n <tr>\n <td bgcolor=\"");
080 out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${bgcolor}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
081 out.write("\">\n ");
082 ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
083 _jspx_sout = null;
084 if (getJspBody() != null)
085 getJspBody().invoke(_jspx_sout);
086 out.write("\n </td>\n </tr>\n</table>\n");
087 } catch( Throwable t ) {
088 if( t instanceof SkipPageException )
089 throw (SkipPageException) t;
090 if( t instanceof java.io.IOException )
091 throw (java.io.IOException) t;
092 if( t instanceof IllegalStateException )
093 throw (IllegalStateException) t;
094 if( t instanceof JspException )
095 throw (JspException) t;
096 throw new JspException(t);
097 } finally {
098 ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
099 }
100 }
101 }