Grosse MàJ

This commit is contained in:
olivier
2008-11-25 22:11:16 +01:00
parent 53195fdfcd
commit 3e719157ea
2980 changed files with 343846 additions and 0 deletions

View File

@ -0,0 +1,149 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class erreurs_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
out.write("\t\t<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\r\n");
out.write(" <title>RandoOnLine - Erreurs</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write("\r\n");
out.write(" <h1>RandoOnLine</h1>\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <thead>\r\n");
out.write(" <tr>\r\n");
out.write(" <th><a href=\"./index.jsp\">Accueil</a></th>\r\n");
out.write(" <th><a href=\"./Panier\">Panier</a></th>\r\n");
out.write(" <th><a href=\"./Articles\">Liste des articles</a></th>\r\n");
out.write(" </tr>\r\n");
out.write(" </thead>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write("\t\t<h2>Les erreurs suivantes se sont produites : </h2>\r\n");
out.write("\t\t<ul>\r\n");
out.write("\t\t\t");
if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t\t</ul>\r\n");
out.write("\t\t\r\n");
out.write(" \t<p><a href=\"./index.jsp\">Accueil</a></p>\r\n");
out.write("\t</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005fforEach_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fforEach_005f0.setParent(null);
// /erreurs.jsp(30,3) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${erreurs}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
// /erreurs.jsp(30,3) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setVar("err");
int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
try {
int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t\t\t\t\t<li>\r\n");
out.write("\t\t\t\t\t\t");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${err.message}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\r\n");
out.write("\t\t\t\t\t</li>\r\n");
out.write("\t\t\t");
int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_005fforEach_005f0.doFinally();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0);
}
return false;
}
}

View File

@ -0,0 +1,84 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
out.write("\t\t<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\r\n");
out.write(" <title>RandoOnLine</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write("\r\n");
out.write(" <h1>RandoOnLine</h1>\r\n");
out.write(" <br/>\r\n");
out.write(" <a href=\"./Articles\">Afficher les articles</a>\r\n");
out.write(" \r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,94 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class panierVide_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
out.write("\t\t<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\r\n");
out.write(" <title>RandoOnLine - Contenu du Panier</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>RandoOnLine</h1>\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <thead>\r\n");
out.write(" <tr>\r\n");
out.write(" <th><a href=\"./index.jsp\">Accueil</a></th>\r\n");
out.write(" <th>Panier</th>\r\n");
out.write(" <th><a href=\"./Articles\">Liste des articles</a></th>\r\n");
out.write(" </tr>\r\n");
out.write(" </thead>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write("\t\t<h2>Contenu de votre panier</h2>\r\n");
out.write("\t\t<P>Votre panier est vide</P>\r\n");
out.write(" \t<a href=\"./Articles\">Continuez vos achats</a>\r\n");
out.write("\t</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,105 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class bonjour_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/librairie.tld");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\n");
out.write("<html>\n");
out.write("<head>\n");
out.write("\t<title></title>\n");
out.write("</head>\n");
out.write("<body>\n");
out.write("\t<div id=\"contenu_principal\">\n");
out.write("\t\t<div id=\"tete\">\t<h1>Notre outil applicatif</h1></div>\n");
out.write("\t\t<div id=\"menu\">\n");
out.write("\t\t\t<ul id=\"Tests\">\n");
out.write("\t\t\t\t<li><a href=\"/bonjour.jsp\">Bonjour tout le monde</a></li>\n");
out.write("\t\t\t</ul>\n");
out.write("\t\t</div>\n");
out.write("\t\t<div id=\"contenu_secondaire\">\n");
out.write("\t\t\t");
if (_jspx_meth_balise_005fbonjour_005f0(_jspx_page_context))
return;
out.write("\n");
out.write("\t\t</div>\n");
out.write("\t</div>\n");
out.write("</body>\n");
out.write("</html>\n");
out.write("\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_balise_005fbonjour_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// balise:bonjour
jsp2.bonjour _jspx_th_balise_005fbonjour_005f0 = new jsp2.bonjour();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_balise_005fbonjour_005f0);
_jspx_th_balise_005fbonjour_005f0.setJspContext(_jspx_page_context);
_jspx_th_balise_005fbonjour_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_balise_005fbonjour_005f0);
return false;
}
}

View File

@ -0,0 +1,258 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class erreurs_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(2);
_jspx_dependants.add("/includes/entete.jsp");
_jspx_dependants.add("/includes/enqueue.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.release();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n");
out.write(" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
out.write("\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write("\n");
if (_jspx_meth_c_005furl_005f0(_jspx_page_context))
return;
out.write("\n");
out.write("<head>\n");
out.write("\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n");
out.write("\t<title>I comme Herse</title>\n");
out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${charte}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" />\n");
out.write("</head>\n");
out.write("<body>\n");
out.write("<div id=\"contenu_principal\">\n");
out.write("\n");
out.write("\t<div id=\"tete\"><h1 title=\"I, comme Herse\">I, comme Herse</h1></div>\n");
out.write("\n");
out.write("\t<div id=\"menu\">\n");
out.write("\t\t<ul id=\"menu_principal\">\n");
if (_jspx_meth_c_005furl_005f1(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f2(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f3(_jspx_page_context))
return;
out.write("\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${accueil}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Accueil</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${article}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Articles</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${panier}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Panier</a></li>\n");
out.write("\t\t</ul>\n");
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"contenu_secondaire\">\n");
out.write("\t\t<h2>Erreur !</h2>\r\n");
out.write("\t\t\t");
if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"pied\"><p>Propulsé par J2EE sur Tomcat5, écrit à l'aide de VIM</p></div>\n");
out.write("</div>\n");
out.write("</body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005furl_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f0 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f0.setParent(null);
// /includes/entete.jsp(6,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setVar("charte");
// /includes/entete.jsp(6,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setValue("/style.css");
int _jspx_eval_c_005furl_005f0 = _jspx_th_c_005furl_005f0.doStartTag();
if (_jspx_th_c_005furl_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return false;
}
private boolean _jspx_meth_c_005furl_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f1 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f1.setParent(null);
// /includes/entete.jsp(19,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setVar("accueil");
// /includes/entete.jsp(19,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setValue("/");
int _jspx_eval_c_005furl_005f1 = _jspx_th_c_005furl_005f1.doStartTag();
if (_jspx_th_c_005furl_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return false;
}
private boolean _jspx_meth_c_005furl_005f2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f2 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f2.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f2.setParent(null);
// /includes/entete.jsp(20,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setVar("article");
// /includes/entete.jsp(20,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setValue("/Articles");
int _jspx_eval_c_005furl_005f2 = _jspx_th_c_005furl_005f2.doStartTag();
if (_jspx_th_c_005furl_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return false;
}
private boolean _jspx_meth_c_005furl_005f3(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f3 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f3.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f3.setParent(null);
// /includes/entete.jsp(21,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setVar("panier");
// /includes/entete.jsp(21,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setValue("/Panier");
int _jspx_eval_c_005furl_005f3 = _jspx_th_c_005furl_005f3.doStartTag();
if (_jspx_th_c_005furl_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return false;
}
private boolean _jspx_meth_c_005fforEach_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fforEach_005f0.setParent(null);
// /erreurs.jsp(2,3) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${erreurs}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
// /erreurs.jsp(2,3) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setVar("err");
int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
try {
int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t\t\t<p>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${err.message}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</p>\r\n");
out.write("\t\t\t");
int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_005fforEach_005f0.doFinally();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0);
}
return false;
}
}

View File

@ -0,0 +1,209 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(2);
_jspx_dependants.add("/includes/entete.jsp");
_jspx_dependants.add("/includes/enqueue.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n");
out.write(" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
out.write("\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write("\n");
if (_jspx_meth_c_005furl_005f0(_jspx_page_context))
return;
out.write("\n");
out.write("<head>\n");
out.write("\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n");
out.write("\t<title>I comme Herse</title>\n");
out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${charte}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" />\n");
out.write("</head>\n");
out.write("<body>\n");
out.write("<div id=\"contenu_principal\">\n");
out.write("\n");
out.write("\t<div id=\"tete\"><h1 title=\"I, comme Herse\">I, comme Herse</h1></div>\n");
out.write("\n");
out.write("\t<div id=\"menu\">\n");
out.write("\t\t<ul id=\"menu_principal\">\n");
if (_jspx_meth_c_005furl_005f1(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f2(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f3(_jspx_page_context))
return;
out.write("\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${accueil}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Accueil</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${article}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Articles</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${panier}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Panier</a></li>\n");
out.write("\t\t</ul>\n");
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"contenu_secondaire\">\n");
out.write("<p>Bienvenue dans le site d'Ecommerce</p>");
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"pied\"><p>Propulsé par J2EE sur Tomcat5, écrit à l'aide de VIM</p></div>\n");
out.write("</div>\n");
out.write("</body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005furl_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f0 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f0.setParent(null);
// /includes/entete.jsp(6,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setVar("charte");
// /includes/entete.jsp(6,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setValue("/style.css");
int _jspx_eval_c_005furl_005f0 = _jspx_th_c_005furl_005f0.doStartTag();
if (_jspx_th_c_005furl_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return false;
}
private boolean _jspx_meth_c_005furl_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f1 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f1.setParent(null);
// /includes/entete.jsp(19,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setVar("accueil");
// /includes/entete.jsp(19,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setValue("/");
int _jspx_eval_c_005furl_005f1 = _jspx_th_c_005furl_005f1.doStartTag();
if (_jspx_th_c_005furl_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return false;
}
private boolean _jspx_meth_c_005furl_005f2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f2 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f2.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f2.setParent(null);
// /includes/entete.jsp(20,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setVar("article");
// /includes/entete.jsp(20,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setValue("/Articles");
int _jspx_eval_c_005furl_005f2 = _jspx_th_c_005furl_005f2.doStartTag();
if (_jspx_th_c_005furl_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return false;
}
private boolean _jspx_meth_c_005furl_005f3(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f3 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f3.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f3.setParent(null);
// /includes/entete.jsp(21,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setVar("panier");
// /includes/entete.jsp(21,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setValue("/Panier");
int _jspx_eval_c_005furl_005f3 = _jspx_th_c_005furl_005f3.doStartTag();
if (_jspx_th_c_005furl_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return false;
}
}

View File

@ -0,0 +1,211 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class panierVide_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(2);
_jspx_dependants.add("/includes/entete.jsp");
_jspx_dependants.add("/includes/enqueue.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n");
out.write(" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
out.write("\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write("\n");
if (_jspx_meth_c_005furl_005f0(_jspx_page_context))
return;
out.write("\n");
out.write("<head>\n");
out.write("\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n");
out.write("\t<title>I comme Herse</title>\n");
out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${charte}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" />\n");
out.write("</head>\n");
out.write("<body>\n");
out.write("<div id=\"contenu_principal\">\n");
out.write("\n");
out.write("\t<div id=\"tete\"><h1 title=\"I, comme Herse\">I, comme Herse</h1></div>\n");
out.write("\n");
out.write("\t<div id=\"menu\">\n");
out.write("\t\t<ul id=\"menu_principal\">\n");
if (_jspx_meth_c_005furl_005f1(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f2(_jspx_page_context))
return;
out.write('\n');
if (_jspx_meth_c_005furl_005f3(_jspx_page_context))
return;
out.write("\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${accueil}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Accueil</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${article}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Articles</a></li>\n");
out.write("\t\t\t<li><a href=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${panier}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">Panier</a></li>\n");
out.write("\t\t</ul>\n");
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"contenu_secondaire\">\n");
out.write("\t\t<h2>Contenu Panier</h2>\r\n");
out.write("\t\t<p>Rien</p>\r\n");
out.write(" \t<a href=\"./Articles\">Continuez les achats</a>\r\n");
out.write("\t</div>\n");
out.write("\n");
out.write("\t<div id=\"pied\"><p>Propulsé par J2EE sur Tomcat5, écrit à l'aide de VIM</p></div>\n");
out.write("</div>\n");
out.write("</body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005furl_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f0 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f0.setParent(null);
// /includes/entete.jsp(6,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setVar("charte");
// /includes/entete.jsp(6,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f0.setValue("/style.css");
int _jspx_eval_c_005furl_005f0 = _jspx_th_c_005furl_005f0.doStartTag();
if (_jspx_th_c_005furl_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f0);
return false;
}
private boolean _jspx_meth_c_005furl_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f1 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f1.setParent(null);
// /includes/entete.jsp(19,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setVar("accueil");
// /includes/entete.jsp(19,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f1.setValue("/");
int _jspx_eval_c_005furl_005f1 = _jspx_th_c_005furl_005f1.doStartTag();
if (_jspx_th_c_005furl_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f1);
return false;
}
private boolean _jspx_meth_c_005furl_005f2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f2 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f2.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f2.setParent(null);
// /includes/entete.jsp(20,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setVar("article");
// /includes/entete.jsp(20,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f2.setValue("/Articles");
int _jspx_eval_c_005furl_005f2 = _jspx_th_c_005furl_005f2.doStartTag();
if (_jspx_th_c_005furl_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f2);
return false;
}
private boolean _jspx_meth_c_005furl_005f3(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:url
org.apache.taglibs.standard.tag.rt.core.UrlTag _jspx_th_c_005furl_005f3 = (org.apache.taglibs.standard.tag.rt.core.UrlTag) _005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.UrlTag.class);
_jspx_th_c_005furl_005f3.setPageContext(_jspx_page_context);
_jspx_th_c_005furl_005f3.setParent(null);
// /includes/entete.jsp(21,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setVar("panier");
// /includes/entete.jsp(21,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005furl_005f3.setValue("/Panier");
int _jspx_eval_c_005furl_005f3 = _jspx_th_c_005furl_005f3.doStartTag();
if (_jspx_th_c_005furl_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return true;
}
_005fjspx_005ftagPool_005fc_005furl_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005furl_005f3);
return false;
}
}

View File

@ -0,0 +1,176 @@
package org.apache.jsp.jsp.jsp2.el;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class basic_002darithmetic_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Expression Language - Basic Arithmetic</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Expression Language - Basic Arithmetic</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" This example illustrates basic Expression Language arithmetic.\r\n");
out.write(" Addition (+), subtraction (-), multiplication (*), division (/ or div), \r\n");
out.write(" and modulus (% or mod) are all supported. Error conditions, like\r\n");
out.write(" division by zero, are handled gracefully.\r\n");
out.write(" <br>\r\n");
out.write(" <blockquote>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 + 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 + 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1.2 + 2.3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1.2 + 2.3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1.2E4 + 1.4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1.2E4 + 1.4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${-4 - 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${-4 - 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${21 * 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${21 * 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3/4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3/4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3 div 4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3 div 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3/0}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3/0}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${10%4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${10%4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${10 mod 4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${10 mod 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>${(1==2) ? 3 : 4}</td>\r\n");
out.write(" <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(1==2) ? 3 : 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" </blockquote>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,210 @@
package org.apache.jsp.jsp.jsp2.el;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class basic_002dcomparisons_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Expression Language - Basic Comparisons</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Expression Language - Basic Comparisons</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" This example illustrates basic Expression Language comparisons.\r\n");
out.write(" The following comparison operators are supported:\r\n");
out.write(" <ul>\r\n");
out.write(" <li>Less-than (&lt; or lt)</li>\r\n");
out.write(" <li>Greater-than (&gt; or gt)</li>\r\n");
out.write(" <li>Less-than-or-equal (&lt;= or le)</li>\r\n");
out.write(" <li>Greater-than-or-equal (&gt;= or ge)</li>\r\n");
out.write(" <li>Equal (== or eq)</li>\r\n");
out.write(" <li>Not Equal (!= or ne)</li>\r\n");
out.write(" </ul>\r\n");
out.write(" <blockquote>\r\n");
out.write(" <u><b>Numeric</b></u>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &lt; 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 < 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 lt 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 lt 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &gt; (4/2)}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 > (4/2)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &gt; (4/2)}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 > (4/2)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4.0 &gt;= 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4.0 >= 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4.0 ge 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4.0 ge 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4 &lt;= 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4 <= 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4 le 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4 le 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${100.0 == 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${100.0 == 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${100.0 eq 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${100.0 eq 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${(10*10) != 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(10*10) != 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${(10*10) ne 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(10*10) ne 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" <br>\r\n");
out.write(" <u><b>Alphabetic</b></u>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'a' &lt; 'b'}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'a' < 'b'}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'hip' &gt; 'hit'}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'hip' > 'hit'}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'4' &gt; 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'4' > 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" </blockquote>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,116 @@
package org.apache.jsp.jsp.jsp2.simpletag;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/jsp2/jsp2-example-taglib.tld");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - Hello World SimpleTag Handler</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - Hello World SimpleTag Handler</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>This tag handler simply echos \"Hello, World!\" It's an example of\r\n");
out.write(" a very basic SimpleTag handler with no body.</p>\r\n");
out.write(" <br>\r\n");
out.write(" <b><u>Result:</u></b>\r\n");
out.write(" ");
if (_jspx_meth_mytag_005fhelloWorld_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_mytag_005fhelloWorld_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// mytag:helloWorld
jsp2.examples.simpletag.HelloWorldSimpleTag _jspx_th_mytag_005fhelloWorld_005f0 = new jsp2.examples.simpletag.HelloWorldSimpleTag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_mytag_005fhelloWorld_005f0);
_jspx_th_mytag_005fhelloWorld_005f0.setJspContext(_jspx_page_context);
_jspx_th_mytag_005fhelloWorld_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_mytag_005fhelloWorld_005f0);
return false;
}
}

View File

@ -0,0 +1,103 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class _401_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
response.setHeader("WWW-Authenticate", "Basic realm=\"Tomcat Manager Application\"");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>401 Unauthorized</title>\r\n");
out.write(" <style>\r\n");
out.write(" <!--\r\n");
out.write(" BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}\r\n");
out.write(" H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}\r\n");
out.write(" PRE, TT {border: 1px dotted #525D76}\r\n");
out.write(" A {color : black;}A.name {color : black;}\r\n");
out.write(" -->\r\n");
out.write(" </style>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>401 Unauthorized</h1>\r\n");
out.write(" <p>\r\n");
out.write(" You are not authorized to view this page. If you have not changed\r\n");
out.write(" any configuration files, please examine the file\r\n");
out.write(" <tt>conf/tomcat-users.xml</tt> in your installation. That\r\n");
out.write(" file will contain the credentials to let you use this webapp.\r\n");
out.write(" </p>\r\n");
out.write(" <p>\r\n");
out.write(" You will need to add <tt>manager</tt> role to the config file listed above.\r\n");
out.write(" For example:\r\n");
out.write("<pre>\r\n");
out.write("&lt;role rolename=\"manager\"/&gt;\r\n");
out.write("&lt;user username=\"tomcat\" password=\"s3cret\" roles=\"manager\"/&gt;\r\n");
out.write("</pre>\r\n");
out.write(" </p>\r\n");
out.write(" <p>\r\n");
out.write(" For more information - please see the\r\n");
out.write(" <a href=\"/docs/manager-howto.html\">Manager App HOW-TO</a>.\r\n");
out.write(" </p>\r\n");
out.write(" </body>\r\n");
out.write("\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,105 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class bonjour_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/librairie.tld");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\n");
out.write("<html>\n");
out.write("<head>\n");
out.write("\t<title></title>\n");
out.write("</head>\n");
out.write("<body>\n");
out.write("\t<div id=\"contenu_principal\">\n");
out.write("\t\t<div id=\"tete\">\t<h1>Notre outil applicatif</h1></div>\n");
out.write("\t\t<div id=\"menu\">\n");
out.write("\t\t\t<ul id=\"Tests\">\n");
out.write("\t\t\t\t<li><a href=\"/bonjour.jsp\">Bonjour tout le monde</a></li>\n");
out.write("\t\t\t</ul>\n");
out.write("\t\t</div>\n");
out.write("\t\t<div id=\"contenu_secondaire\">\n");
out.write("\t\t\t");
if (_jspx_meth_balise_005fbonjour_005f0(_jspx_page_context))
return;
out.write("\n");
out.write("\t\t</div>\n");
out.write("\t</div>\n");
out.write("</body>\n");
out.write("</html>\n");
out.write("\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_balise_005fbonjour_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// balise:bonjour
jsp2.bonjour _jspx_th_balise_005fbonjour_005f0 = new jsp2.bonjour();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_balise_005fbonjour_005f0);
_jspx_th_balise_005fbonjour_005f0.setJspContext(_jspx_page_context);
_jspx_th_balise_005fbonjour_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_balise_005fbonjour_005f0);
return false;
}
}

View File

@ -0,0 +1,145 @@
package org.apache.jsp.jsp.checkbox;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class checkresult_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
String[] fruits;
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>\r\n");
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("<font size=5 color=\"red\">\r\n");
out.write('\r');
out.write('\n');
checkbox.CheckTest foo = null;
synchronized (_jspx_page_context) {
foo = (checkbox.CheckTest) _jspx_page_context.getAttribute("foo", PageContext.PAGE_SCOPE);
if (foo == null){
foo = new checkbox.CheckTest();
_jspx_page_context.setAttribute("foo", foo, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("foo"), "fruit", request.getParameter("fruit"), request, "fruit", false);
out.write("\r\n");
out.write("<hr>\r\n");
out.write("The checked fruits (got using request) are: <br>\r\n");
fruits = request.getParameterValues("fruit");
out.write("\r\n");
out.write("<ul>\r\n");
if (fruits != null) {
for (int i = 0; i < fruits.length; i++) {
out.write("\r\n");
out.write("<li>\r\n");
out.println (util.HTMLFilter.filter(fruits[i]));
}
} else out.println ("none selected");
out.write("\r\n");
out.write("</ul>\r\n");
out.write("<br>\r\n");
out.write("<hr>\r\n");
out.write("\r\n");
out.write("The checked fruits (got using beans) are <br>\r\n");
out.write("\r\n");
fruits = foo.getFruit();
out.write("\r\n");
out.write("<ul>\r\n");
if (!fruits[0].equals("1")) {
for (int i = 0; i < fruits.length; i++) {
out.write("\r\n");
out.write("<li>\r\n");
out.println (util.HTMLFilter.filter(fruits[i]));
}
} else out.println ("none selected");
out.write("\r\n");
out.write("</ul>\r\n");
out.write("</font>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,176 @@
package org.apache.jsp.jsp.jsp2.el;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class basic_002darithmetic_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Expression Language - Basic Arithmetic</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Expression Language - Basic Arithmetic</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" This example illustrates basic Expression Language arithmetic.\r\n");
out.write(" Addition (+), subtraction (-), multiplication (*), division (/ or div), \r\n");
out.write(" and modulus (% or mod) are all supported. Error conditions, like\r\n");
out.write(" division by zero, are handled gracefully.\r\n");
out.write(" <br>\r\n");
out.write(" <blockquote>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 + 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 + 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1.2 + 2.3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1.2 + 2.3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1.2E4 + 1.4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1.2E4 + 1.4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${-4 - 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${-4 - 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${21 * 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${21 * 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3/4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3/4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3 div 4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3 div 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${3/0}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${3/0}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${10%4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${10%4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${10 mod 4}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${10 mod 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>${(1==2) ? 3 : 4}</td>\r\n");
out.write(" <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(1==2) ? 3 : 4}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" </blockquote>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,210 @@
package org.apache.jsp.jsp.jsp2.el;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class basic_002dcomparisons_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Expression Language - Basic Comparisons</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Expression Language - Basic Comparisons</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" This example illustrates basic Expression Language comparisons.\r\n");
out.write(" The following comparison operators are supported:\r\n");
out.write(" <ul>\r\n");
out.write(" <li>Less-than (&lt; or lt)</li>\r\n");
out.write(" <li>Greater-than (&gt; or gt)</li>\r\n");
out.write(" <li>Less-than-or-equal (&lt;= or le)</li>\r\n");
out.write(" <li>Greater-than-or-equal (&gt;= or ge)</li>\r\n");
out.write(" <li>Equal (== or eq)</li>\r\n");
out.write(" <li>Not Equal (!= or ne)</li>\r\n");
out.write(" </ul>\r\n");
out.write(" <blockquote>\r\n");
out.write(" <u><b>Numeric</b></u>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &lt; 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 < 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 lt 2}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 lt 2}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &gt; (4/2)}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 > (4/2)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${1 &gt; (4/2)}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1 > (4/2)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4.0 &gt;= 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4.0 >= 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4.0 ge 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4.0 ge 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4 &lt;= 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4 <= 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${4 le 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${4 le 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${100.0 == 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${100.0 == 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${100.0 eq 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${100.0 eq 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${(10*10) != 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(10*10) != 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${(10*10) ne 100}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(10*10) ne 100}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" <br>\r\n");
out.write(" <u><b>Alphabetic</b></u>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'a' &lt; 'b'}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'a' < 'b'}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'hip' &gt; 'hit'}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'hip' > 'hit'}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${'4' &gt; 3}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${'4' > 3}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" </blockquote>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,171 @@
package org.apache.jsp.jsp.jsp2.el;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class implicit_002dobjects_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_0;
static {
_jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("fn:escapeXml", org.apache.taglibs.standard.functions.Functions.class, "escapeXml", new Class[] {java.lang.String.class});
}
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Expression Language - Implicit Objects</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Expression Language - Implicit Objects</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" This example illustrates some of the implicit objects available \r\n");
out.write(" in the Expression Lanaguage. The following implicit objects are \r\n");
out.write(" available (not all illustrated here):\r\n");
out.write(" <ul>\r\n");
out.write(" <li>pageContext - the PageContext object</li>\r\n");
out.write(" <li>pageScope - a Map that maps page-scoped attribute names to \r\n");
out.write(" their values</li>\r\n");
out.write(" <li>requestScope - a Map that maps request-scoped attribute names \r\n");
out.write(" to their values</li>\r\n");
out.write(" <li>sessionScope - a Map that maps session-scoped attribute names \r\n");
out.write(" to their values</li>\r\n");
out.write(" <li>applicationScope - a Map that maps application-scoped attribute \r\n");
out.write(" names to their values</li>\r\n");
out.write(" <li>param - a Map that maps parameter names to a single String \r\n");
out.write(" parameter value</li>\r\n");
out.write(" <li>paramValues - a Map that maps parameter names to a String[] of \r\n");
out.write(" all values for that parameter</li>\r\n");
out.write(" <li>header - a Map that maps header names to a single String \r\n");
out.write(" header value</li>\r\n");
out.write(" <li>headerValues - a Map that maps header names to a String[] of \r\n");
out.write(" all values for that header</li>\r\n");
out.write(" <li>initParam - a Map that maps context initialization parameter \r\n");
out.write(" names to their String parameter value</li>\r\n");
out.write(" <li>cookie - a Map that maps cookie names to a single Cookie object.</li>\r\n");
out.write(" </ul>\r\n");
out.write("\r\n");
out.write(" <blockquote>\r\n");
out.write(" <u><b>Change Parameter</b></u>\r\n");
out.write(" <form action=\"implicit-objects.jsp\" method=\"GET\">\r\n");
out.write("\t foo = <input type=\"text\" name=\"foo\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(param[\"foo\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("\">\r\n");
out.write(" <input type=\"submit\">\r\n");
out.write(" </form>\r\n");
out.write(" <br>\r\n");
out.write(" <code>\r\n");
out.write(" <table border=\"1\">\r\n");
out.write(" <thead>\r\n");
out.write("\t <td><b>EL Expression</b></td>\r\n");
out.write("\t <td><b>Result</b></td>\r\n");
out.write("\t </thead>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${param.foo}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(param[\"foo\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("&nbsp;</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${param[\"foo\"]}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(param[\"foo\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("&nbsp;</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${header[\"host\"]}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(header[\"host\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("&nbsp;</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${header[\"accept\"]}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(header[\"accept\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("&nbsp;</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t <tr>\r\n");
out.write("\t <td>${header[\"user-agent\"]}</td>\r\n");
out.write("\t <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:escapeXml(header[\"user-agent\"])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
out.write("&nbsp;</td>\r\n");
out.write("\t </tr>\r\n");
out.write("\t</table>\r\n");
out.write(" </code>\r\n");
out.write(" </blockquote>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,134 @@
package org.apache.jsp.jsp.jsp2.jspattribute;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class jspattribute_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/jsp2/jsp2-example-taglib.tld");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - jsp:attribute and jsp:body</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - jsp:attribute and jsp:body</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>The new &lt;jsp:attribute&gt; and &lt;jsp:body&gt; \r\n");
out.write(" standard actions can be used to specify the value of any standard\r\n");
out.write(" action or custom action attribute.</p>\r\n");
out.write(" <p>This example uses the &lt;jsp:attribute&gt;\r\n");
out.write(" standard action to use the output of a custom action invocation\r\n");
out.write(" (one that simply outputs \"Hello, World!\") to set the value of a\r\n");
out.write(" bean property. This would normally require an intermediary\r\n");
out.write(" step, such as using JSTL's &lt;c:set&gt; action.</p>\r\n");
out.write(" <br>\r\n");
out.write(" ");
jsp2.examples.FooBean foo = null;
synchronized (_jspx_page_context) {
foo = (jsp2.examples.FooBean) _jspx_page_context.getAttribute("foo", PageContext.PAGE_SCOPE);
if (foo == null){
foo = new jsp2.examples.FooBean();
_jspx_page_context.setAttribute("foo", foo, PageContext.PAGE_SCOPE);
out.write("\r\n");
out.write(" Bean created! Setting foo.bar...<br>\r\n");
out.write(" ");
out = _jspx_page_context.pushBody();
// my:helloWorld
jsp2.examples.simpletag.HelloWorldSimpleTag _jspx_th_my_005fhelloWorld_005f0 = new jsp2.examples.simpletag.HelloWorldSimpleTag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_my_005fhelloWorld_005f0);
_jspx_th_my_005fhelloWorld_005f0.setJspContext(_jspx_page_context);
_jspx_th_my_005fhelloWorld_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_my_005fhelloWorld_005f0);
String _jspx_temp0 = ((javax.servlet.jsp.tagext.BodyContent)out).getString();
out = _jspx_page_context.popBody();
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("foo"), "bar", _jspx_temp0, null, null, false);
out.write("\r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write(" <br>\r\n");
out.write(" Result: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${foo.bar}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,207 @@
package org.apache.jsp.jsp.jsp2.jspx;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class basic_jspx extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/tags/xhtmlbasic.tag");
}
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
if (_jspx_meth_tags_005fxhtmlbasic_005f0(_jspx_page_context))
return;
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_tags_005fxhtmlbasic_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
HttpServletRequest request = (HttpServletRequest)_jspx_page_context.getRequest();
// tags:xhtmlbasic
org.apache.jsp.tag.web.xhtmlbasic_tag _jspx_th_tags_005fxhtmlbasic_005f0 = new org.apache.jsp.tag.web.xhtmlbasic_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fxhtmlbasic_005f0);
_jspx_th_tags_005fxhtmlbasic_005f0.setJspContext(_jspx_page_context);
_jspx_th_tags_005fxhtmlbasic_005f0.setJspBody(new basic_jspxHelper( 0, _jspx_page_context, _jspx_th_tags_005fxhtmlbasic_005f0, null));
_jspx_th_tags_005fxhtmlbasic_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fxhtmlbasic_005f0);
return false;
}
private boolean _jspx_meth_fmt_005fformatDate_005f0(javax.servlet.jsp.tagext.JspTag _jspx_parent, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:formatDate
org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag _jspx_th_fmt_005fformatDate_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag) _005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag.class);
_jspx_th_fmt_005fformatDate_005f0.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fformatDate_005f0.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) _jspx_parent));
// /jsp/jsp2/jspx/basic.jspx(28,69) name = pattern type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f0.setPattern("MMMM d, yyyy, H:mm:ss");
// /jsp/jsp2/jspx/basic.jspx(28,69) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fformatDate_005f0.setValue((java.util.Date) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${now}", java.util.Date.class, (PageContext)_jspx_page_context, null, false));
int _jspx_eval_fmt_005fformatDate_005f0 = _jspx_th_fmt_005fformatDate_005f0.doStartTag();
if (_jspx_th_fmt_005fformatDate_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody.reuse(_jspx_th_fmt_005fformatDate_005f0);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005ffmt_005fformatDate_005fvalue_005fpattern_005fnobody.reuse(_jspx_th_fmt_005fformatDate_005f0);
return false;
}
private class basic_jspxHelper
extends org.apache.jasper.runtime.JspFragmentHelper
{
private javax.servlet.jsp.tagext.JspTag _jspx_parent;
private int[] _jspx_push_body_count;
public basic_jspxHelper( int discriminator, JspContext jspContext, javax.servlet.jsp.tagext.JspTag _jspx_parent, int[] _jspx_push_body_count ) {
super( discriminator, jspContext, _jspx_parent );
this._jspx_parent = _jspx_parent;
this._jspx_push_body_count = _jspx_push_body_count;
}
public boolean invoke0( JspWriter out )
throws Throwable
{
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
HttpServletRequest request = (HttpServletRequest)_jspx_page_context.getRequest();
out.write("<head>");
out.write("<title>");
out.write("JSPX - XHTML Basic Example");
out.write("</title>");
out.write("</head>");
out.write("<body>");
out.write("<h1>");
out.write("JSPX - XHTML Basic Example");
out.write("</h1>");
out.write("<hr/>");
out.write("\n");
out.write(" This example illustrates how to use JSPX to produce an XHTML basic\n");
out.write(" document suitable for use with mobile phones, televisions, \n");
out.write(" PDAs, vending machines, pagers, car navigation systems,\n");
out.write(" mobile game machines, digital book readers, smart watches, etc.\n");
out.write(" ");
out.write("<p/>");
out.write("\n");
out.write(" JSPX lets you create dynamic documents in a pure XML syntax compatible\n");
out.write(" with existing XML tools. The XML syntax in JSP 1.2 was awkward and\n");
out.write(" required &lt;jsp:root&gt; to be the root element of the document.\n");
out.write(" This is no longer the case in JSP 2.0.\n");
out.write(" ");
out.write("<p/>");
out.write("\n");
out.write(" This particular example uses a tag file to produce the DOCTYPE and\n");
out.write(" namespace declarations to make the output of this page a valid XHTML\n");
out.write(" Basic document.\n");
out.write(" ");
out.write("<p/>");
out.write("\n");
out.write(" Just to prove this is live, here's some dynamic content:\n");
out.write(" ");
java.util.Date now = null;
synchronized (_jspx_page_context) {
now = (java.util.Date) _jspx_page_context.getAttribute("now", PageContext.PAGE_SCOPE);
if (now == null){
now = new java.util.Date();
_jspx_page_context.setAttribute("now", now, PageContext.PAGE_SCOPE);
}
}
if (_jspx_meth_fmt_005fformatDate_005f0(_jspx_parent, _jspx_page_context))
return true;
out.write("</body>");
return false;
}
public void invoke( java.io.Writer writer )
throws JspException
{
JspWriter out = null;
if( writer != null ) {
out = this.jspContext.pushBody(writer);
} else {
out = this.jspContext.getOut();
}
try {
this.jspContext.getELContext().putContext(JspContext.class,this.jspContext);
switch( this.discriminator ) {
case 0:
invoke0( out );
break;
}
}
catch( Throwable e ) {
if (e instanceof SkipPageException)
throw (SkipPageException) e;
throw new JspException( e );
}
finally {
if( writer != null ) {
this.jspContext.popBody();
}
}
}
}
}

View File

@ -0,0 +1,116 @@
package org.apache.jsp.jsp.jsp2.simpletag;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/jsp2/jsp2-example-taglib.tld");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - Hello World SimpleTag Handler</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - Hello World SimpleTag Handler</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>This tag handler simply echos \"Hello, World!\" It's an example of\r\n");
out.write(" a very basic SimpleTag handler with no body.</p>\r\n");
out.write(" <br>\r\n");
out.write(" <b><u>Result:</u></b>\r\n");
out.write(" ");
if (_jspx_meth_mytag_005fhelloWorld_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_mytag_005fhelloWorld_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// mytag:helloWorld
jsp2.examples.simpletag.HelloWorldSimpleTag _jspx_th_mytag_005fhelloWorld_005f0 = new jsp2.examples.simpletag.HelloWorldSimpleTag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_mytag_005fhelloWorld_005f0);
_jspx_th_mytag_005fhelloWorld_005f0.setJspContext(_jspx_page_context);
_jspx_th_mytag_005fhelloWorld_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_mytag_005fhelloWorld_005f0);
return false;
}
}

View File

@ -0,0 +1,120 @@
package org.apache.jsp.jsp.jsp2.tagfiles;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/tags/helloWorld.tag");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - Hello World Using a Tag File</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - Hello World Using a Tag File</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>This JSP page invokes a custom tag that simply echos \"Hello, World!\" \r\n");
out.write(" The custom tag is generated from a tag file in the /WEB-INF/tags\r\n");
out.write(" directory.</p>\r\n");
out.write(" <p>Notice that we did not need to write a TLD for this tag. We just\r\n");
out.write(" created /WEB-INF/tags/helloWorld.tag, imported it using the taglib\r\n");
out.write(" directive, and used it!</p>\r\n");
out.write(" <br>\r\n");
out.write(" <b><u>Result:</u></b>\r\n");
out.write(" ");
if (_jspx_meth_tags_005fhelloWorld_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_tags_005fhelloWorld_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// tags:helloWorld
org.apache.jsp.tag.web.helloWorld_tag _jspx_th_tags_005fhelloWorld_005f0 = new org.apache.jsp.tag.web.helloWorld_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fhelloWorld_005f0);
_jspx_th_tags_005fhelloWorld_005f0.setJspContext(_jspx_page_context);
_jspx_th_tags_005fhelloWorld_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fhelloWorld_005f0);
return false;
}
}

View File

@ -0,0 +1,294 @@
package org.apache.jsp.jsp.jsp2.tagfiles;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class panel_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/tags/panel.tag");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - Panels using Tag Files</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - Panels using Tag Files</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>This JSP page invokes a custom tag that draws a \r\n");
out.write(" panel around the contents of the tag body. Normally, such a tag \r\n");
out.write(" implementation would require a Java class with many println() statements,\r\n");
out.write(" outputting HTML. Instead, we can use a .tag file as a template,\r\n");
out.write(" and we don't need to write a single line of Java or even a TLD!</p>\r\n");
out.write(" <hr>\r\n");
out.write(" <table border=\"0\">\r\n");
out.write(" <tr valign=\"top\">\r\n");
out.write(" <td>\r\n");
out.write(" ");
if (_jspx_meth_tags_005fpanel_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" ");
if (_jspx_meth_tags_005fpanel_005f1(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" ");
if (_jspx_meth_tags_005fpanel_005f2(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_tags_005fpanel_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// tags:panel
org.apache.jsp.tag.web.panel_tag _jspx_th_tags_005fpanel_005f0 = new org.apache.jsp.tag.web.panel_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f0);
_jspx_th_tags_005fpanel_005f0.setJspContext(_jspx_page_context);
// /jsp/jsp2/tagfiles/panel.jsp(34,10) name = color type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f0.setColor("#ff8080");
// /jsp/jsp2/tagfiles/panel.jsp(34,10) name = bgcolor type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f0.setBgcolor("#ffc0c0");
// /jsp/jsp2/tagfiles/panel.jsp(34,10) name = title type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f0.setTitle("Panel 1");
_jspx_th_tags_005fpanel_005f0.setJspBody(new panel_jspHelper( 0, _jspx_page_context, _jspx_th_tags_005fpanel_005f0, null));
_jspx_th_tags_005fpanel_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f0);
return false;
}
private boolean _jspx_meth_tags_005fpanel_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// tags:panel
org.apache.jsp.tag.web.panel_tag _jspx_th_tags_005fpanel_005f1 = new org.apache.jsp.tag.web.panel_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f1);
_jspx_th_tags_005fpanel_005f1.setJspContext(_jspx_page_context);
// /jsp/jsp2/tagfiles/panel.jsp(39,10) name = color type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f1.setColor("#80ff80");
// /jsp/jsp2/tagfiles/panel.jsp(39,10) name = bgcolor type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f1.setBgcolor("#c0ffc0");
// /jsp/jsp2/tagfiles/panel.jsp(39,10) name = title type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f1.setTitle("Panel 2");
_jspx_th_tags_005fpanel_005f1.setJspBody(new panel_jspHelper( 1, _jspx_page_context, _jspx_th_tags_005fpanel_005f1, null));
_jspx_th_tags_005fpanel_005f1.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f1);
return false;
}
private boolean _jspx_meth_tags_005fpanel_005f2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// tags:panel
org.apache.jsp.tag.web.panel_tag _jspx_th_tags_005fpanel_005f2 = new org.apache.jsp.tag.web.panel_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f2);
_jspx_th_tags_005fpanel_005f2.setJspContext(_jspx_page_context);
// /jsp/jsp2/tagfiles/panel.jsp(47,10) name = color type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f2.setColor("#8080ff");
// /jsp/jsp2/tagfiles/panel.jsp(47,10) name = bgcolor type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f2.setBgcolor("#c0c0ff");
// /jsp/jsp2/tagfiles/panel.jsp(47,10) name = title type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f2.setTitle("Panel 3");
_jspx_th_tags_005fpanel_005f2.setJspBody(new panel_jspHelper( 2, _jspx_page_context, _jspx_th_tags_005fpanel_005f2, null));
_jspx_th_tags_005fpanel_005f2.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f2);
return false;
}
private boolean _jspx_meth_tags_005fpanel_005f3(javax.servlet.jsp.tagext.JspTag _jspx_parent, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// tags:panel
org.apache.jsp.tag.web.panel_tag _jspx_th_tags_005fpanel_005f3 = new org.apache.jsp.tag.web.panel_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f3);
_jspx_th_tags_005fpanel_005f3.setJspContext(_jspx_page_context);
_jspx_th_tags_005fpanel_005f3.setParent(_jspx_parent);
// /jsp/jsp2/tagfiles/panel.jsp(49,12) name = color type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f3.setColor("#ff80ff");
// /jsp/jsp2/tagfiles/panel.jsp(49,12) name = bgcolor type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f3.setBgcolor("#ffc0ff");
// /jsp/jsp2/tagfiles/panel.jsp(49,12) name = title type = java.lang.String reqTime = true required = false fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_tags_005fpanel_005f3.setTitle("Inner");
_jspx_th_tags_005fpanel_005f3.setJspBody(new panel_jspHelper( 3, _jspx_page_context, _jspx_th_tags_005fpanel_005f3, null));
_jspx_th_tags_005fpanel_005f3.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fpanel_005f3);
return false;
}
private class panel_jspHelper
extends org.apache.jasper.runtime.JspFragmentHelper
{
private javax.servlet.jsp.tagext.JspTag _jspx_parent;
private int[] _jspx_push_body_count;
public panel_jspHelper( int discriminator, JspContext jspContext, javax.servlet.jsp.tagext.JspTag _jspx_parent, int[] _jspx_push_body_count ) {
super( discriminator, jspContext, _jspx_parent );
this._jspx_parent = _jspx_parent;
this._jspx_push_body_count = _jspx_push_body_count;
}
public boolean invoke0( JspWriter out )
throws Throwable
{
out.write("\r\n");
out.write("\t First panel.<br/>\r\n");
out.write("\t ");
return false;
}
public boolean invoke1( JspWriter out )
throws Throwable
{
out.write("\r\n");
out.write("\t Second panel.<br/>\r\n");
out.write("\t Second panel.<br/>\r\n");
out.write("\t Second panel.<br/>\r\n");
out.write("\t Second panel.<br/>\r\n");
out.write("\t ");
return false;
}
public boolean invoke2( JspWriter out )
throws Throwable
{
out.write("\r\n");
out.write("\t Third panel.<br/>\r\n");
out.write(" ");
if (_jspx_meth_tags_005fpanel_005f3(_jspx_parent, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t Third panel.<br/>\r\n");
out.write("\t ");
return false;
}
public boolean invoke3( JspWriter out )
throws Throwable
{
out.write("\r\n");
out.write("\t A panel in a panel.\r\n");
out.write("\t ");
return false;
}
public void invoke( java.io.Writer writer )
throws JspException
{
JspWriter out = null;
if( writer != null ) {
out = this.jspContext.pushBody(writer);
} else {
out = this.jspContext.getOut();
}
try {
this.jspContext.getELContext().putContext(JspContext.class,this.jspContext);
switch( this.discriminator ) {
case 0:
invoke0( out );
break;
case 1:
invoke1( out );
break;
case 2:
invoke2( out );
break;
case 3:
invoke3( out );
break;
}
}
catch( Throwable e ) {
if (e instanceof SkipPageException)
throw (SkipPageException) e;
throw new JspException( e );
}
finally {
if( writer != null ) {
this.jspContext.popBody();
}
}
}
}
}

View File

@ -0,0 +1,232 @@
package org.apache.jsp.jsp.jsp2.tagfiles;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class products_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/tags/displayProducts.tag");
}
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>JSP 2.0 Examples - Display Products Tag File</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>JSP 2.0 Examples - Display Products Tag File</h1>\r\n");
out.write(" <hr>\r\n");
out.write(" <p>This JSP page invokes a tag file that displays a listing of \r\n");
out.write(" products. The custom tag accepts two fragments that enable\r\n");
out.write(" customization of appearance. One for when the product is on sale\r\n");
out.write(" and one for normal price.</p>\r\n");
out.write(" <p>The tag is invoked twice, using different styles</p>\r\n");
out.write(" <hr>\r\n");
out.write(" <h2>Products</h2>\r\n");
out.write(" ");
// tags:displayProducts
org.apache.jsp.tag.web.displayProducts_tag _jspx_th_tags_005fdisplayProducts_005f0 = new org.apache.jsp.tag.web.displayProducts_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fdisplayProducts_005f0);
_jspx_th_tags_005fdisplayProducts_005f0.setJspContext(_jspx_page_context);
javax.servlet.jsp.tagext.JspFragment _jspx_temp0 = new products_jspHelper( 0, _jspx_page_context, _jspx_th_tags_005fdisplayProducts_005f0, null);
// /jsp/jsp2/tagfiles/products.jsp(32,4) null
_jspx_th_tags_005fdisplayProducts_005f0.setNormalPrice(_jspx_temp0);
javax.servlet.jsp.tagext.JspFragment _jspx_temp1 = new products_jspHelper( 1, _jspx_page_context, _jspx_th_tags_005fdisplayProducts_005f0, null);
// /jsp/jsp2/tagfiles/products.jsp(32,4) null
_jspx_th_tags_005fdisplayProducts_005f0.setOnSale(_jspx_temp1);
_jspx_th_tags_005fdisplayProducts_005f0.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fdisplayProducts_005f0);
out.write("\r\n");
out.write(" <hr>\r\n");
out.write(" <h2>Products (Same tag, alternate style)</h2>\r\n");
out.write(" ");
// tags:displayProducts
org.apache.jsp.tag.web.displayProducts_tag _jspx_th_tags_005fdisplayProducts_005f1 = new org.apache.jsp.tag.web.displayProducts_tag();
org.apache.jasper.runtime.AnnotationHelper.postConstruct(_jsp_annotationprocessor, _jspx_th_tags_005fdisplayProducts_005f1);
_jspx_th_tags_005fdisplayProducts_005f1.setJspContext(_jspx_page_context);
javax.servlet.jsp.tagext.JspFragment _jspx_temp2 = new products_jspHelper( 2, _jspx_page_context, _jspx_th_tags_005fdisplayProducts_005f1, null);
// /jsp/jsp2/tagfiles/products.jsp(45,4) null
_jspx_th_tags_005fdisplayProducts_005f1.setNormalPrice(_jspx_temp2);
javax.servlet.jsp.tagext.JspFragment _jspx_temp3 = new products_jspHelper( 3, _jspx_page_context, _jspx_th_tags_005fdisplayProducts_005f1, null);
// /jsp/jsp2/tagfiles/products.jsp(45,4) null
_jspx_th_tags_005fdisplayProducts_005f1.setOnSale(_jspx_temp3);
_jspx_th_tags_005fdisplayProducts_005f1.doTag();
org.apache.jasper.runtime.AnnotationHelper.preDestroy(_jsp_annotationprocessor, _jspx_th_tags_005fdisplayProducts_005f1);
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private class products_jspHelper
extends org.apache.jasper.runtime.JspFragmentHelper
{
private javax.servlet.jsp.tagext.JspTag _jspx_parent;
private int[] _jspx_push_body_count;
public products_jspHelper( int discriminator, JspContext jspContext, javax.servlet.jsp.tagext.JspTag _jspx_parent, int[] _jspx_push_body_count ) {
super( discriminator, jspContext, _jspx_parent );
this._jspx_parent = _jspx_parent;
this._jspx_push_body_count = _jspx_push_body_count;
}
public void invoke0( JspWriter out )
throws Throwable
{
out.write("Item: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("<br/>\r\n");
out.write("\tPrice: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${price}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
return;
}
public void invoke1( JspWriter out )
throws Throwable
{
out.write("Item: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("<br/>\r\n");
out.write("\t<font color=\"red\"><strike>Was: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${origPrice}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</strike></font><br/>\r\n");
out.write("\t<b>Now: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${salePrice}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</b>");
return;
}
public void invoke2( JspWriter out )
throws Throwable
{
out.write('<');
out.write('b');
out.write('>');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</b> @ ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${price}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" ea.");
return;
}
public void invoke3( JspWriter out )
throws Throwable
{
out.write('<');
out.write('b');
out.write('>');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</b> @ ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${salePrice}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" ea. (was: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${origPrice}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(')');
return;
}
public void invoke( java.io.Writer writer )
throws JspException
{
JspWriter out = null;
if( writer != null ) {
out = this.jspContext.pushBody(writer);
} else {
out = this.jspContext.getOut();
}
try {
this.jspContext.getELContext().putContext(JspContext.class,this.jspContext);
switch( this.discriminator ) {
case 0:
invoke0( out );
break;
case 1:
invoke1( out );
break;
case 2:
invoke2( out );
break;
case 3:
invoke3( out );
break;
}
}
catch( Throwable e ) {
if (e instanceof SkipPageException)
throw (SkipPageException) e;
throw new JspException( e );
}
finally {
if( writer != null ) {
this.jspContext.popBody();
}
}
}
}
}

View File

@ -0,0 +1,91 @@
package org.apache.jsp.jsp.jsptoserv;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>\r\n");
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("\r\n");
out.write("<h1>\r\n");
out.write("I have been invoked by\r\n");
out.print (request.getAttribute("servletName").toString());
out.write("\r\n");
out.write("Servlet.\r\n");
out.write("</h1>\r\n");
out.write("\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,91 @@
package org.apache.jsp.jsp.jsptoserv;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class jsptoservlet_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>\r\n");
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("\r\n");
out.write("<!-- Forward to a servlet -->\r\n");
if (true) {
_jspx_page_context.forward("/servletToJsp");
return;
}
out.write("\r\n");
out.write("\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,156 @@
package org.apache.jsp.jsp.num;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import num.NumberGuessBean;
public final class numguess_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("\r\n");
out.write(" Number Guess Game\r\n");
out.write(" Written by Jason Hunter, CTO, K&A Software\r\n");
out.write(" http://www.servlets.com\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
num.NumberGuessBean numguess = null;
synchronized (session) {
numguess = (num.NumberGuessBean) _jspx_page_context.getAttribute("numguess", PageContext.SESSION_SCOPE);
if (numguess == null){
numguess = new num.NumberGuessBean();
_jspx_page_context.setAttribute("numguess", numguess, PageContext.SESSION_SCOPE);
}
}
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("numguess"), request);
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head><title>Number Guess</title></head>\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("<font size=4>\r\n");
out.write("\r\n");
if (numguess.getSuccess()) {
out.write("\r\n");
out.write("\r\n");
out.write(" Congratulations! You got it.\r\n");
out.write(" And after just ");
out.print( numguess.getNumGuesses() );
out.write(" tries.<p>\r\n");
out.write("\r\n");
out.write(" ");
numguess.reset();
out.write("\r\n");
out.write("\r\n");
out.write(" Care to <a href=\"numguess.jsp\">try again</a>?\r\n");
out.write("\r\n");
} else if (numguess.getNumGuesses() == 0) {
out.write("\r\n");
out.write("\r\n");
out.write(" Welcome to the Number Guess game.<p>\r\n");
out.write("\r\n");
out.write(" I'm thinking of a number between 1 and 100.<p>\r\n");
out.write("\r\n");
out.write(" <form method=get>\r\n");
out.write(" What's your guess? <input type=text name=guess>\r\n");
out.write(" <input type=submit value=\"Submit\">\r\n");
out.write(" </form>\r\n");
out.write("\r\n");
} else {
out.write("\r\n");
out.write("\r\n");
out.write(" Good guess, but nope. Try <b>");
out.print( numguess.getHint() );
out.write("</b>.\r\n");
out.write("\r\n");
out.write(" You have made ");
out.print( numguess.getNumGuesses() );
out.write(" guesses.<p>\r\n");
out.write("\r\n");
out.write(" I'm thinking of a number between 1 and 100.<p>\r\n");
out.write("\r\n");
out.write(" <form method=get>\r\n");
out.write(" What's your guess? <input type=text name=guess>\r\n");
out.write(" <input type=submit value=\"Submit\">\r\n");
out.write(" </form>\r\n");
out.write("\r\n");
}
out.write("\r\n");
out.write("\r\n");
out.write("</font>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,119 @@
package org.apache.jsp.jsp.plugin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class plugin_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>\r\n");
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<title> Plugin example </title>\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("<h3> Current time is : </h3>\r\n");
out.write("<object classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" + " width=\"" + "160" + "\"" + " height=\"" + "150" + "\"" + " codebase=\"http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0\">");
out.write("\n");
out.write("<param name=\"java_code\" value=\"Clock2.class\">");
out.write("\n");
out.write("<param name=\"java_codebase\" value=\"applet\">");
out.write("\n");
out.write("<param name=\"type\" value=\"application/x-java-applet;version=1.2\">");
out.write("\n");
out.write("<comment>");
out.write("\n");
out.write("<EMBED type=\"application/x-java-applet;version=1.2\"" + " width=\"" + "160" + "\"" + " height=\"" + "150" + "\"" + " pluginspage=\"http://java.sun.com/products/plugin/\" java_code=\"Clock2.class\" java_codebase=\"applet\"");
out.write("/>");
out.write("\n");
out.write("<noembed>");
out.write("\n");
out.write("\r\n");
out.write(" Plugin tag OBJECT or EMBED not supported by browser.\r\n");
out.write(" ");
out.write("\n");
out.write("</noembed>");
out.write("\n");
out.write("</comment>");
out.write("\n");
out.write("</object>");
out.write("\n");
out.write("\r\n");
out.write("<p>\r\n");
out.write("<h4>\r\n");
out.write("<font color=red> \r\n");
out.write("The above applet is loaded using the Java Plugin from a jsp page using the\r\n");
out.write("plugin tag.\r\n");
out.write("</font>\r\n");
out.write("</h4>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,152 @@
package org.apache.jsp.jsp.snp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class snoop_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>\r\n");
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("<body bgcolor=\"white\">\r\n");
out.write("<h1> Request Information </h1>\r\n");
out.write("<font size=\"4\">\r\n");
out.write("JSP Request Method: ");
out.print( util.HTMLFilter.filter(request.getMethod()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Request URI: ");
out.print( util.HTMLFilter.filter(request.getRequestURI()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Request Protocol: ");
out.print( util.HTMLFilter.filter(request.getProtocol()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Servlet path: ");
out.print( util.HTMLFilter.filter(request.getServletPath()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Path info: ");
out.print( util.HTMLFilter.filter(request.getPathInfo()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Query string: ");
out.print( util.HTMLFilter.filter(request.getQueryString()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Content length: ");
out.print( request.getContentLength() );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Content type: ");
out.print( util.HTMLFilter.filter(request.getContentType()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Server name: ");
out.print( util.HTMLFilter.filter(request.getServerName()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Server port: ");
out.print( request.getServerPort() );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Remote user: ");
out.print( util.HTMLFilter.filter(request.getRemoteUser()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Remote address: ");
out.print( util.HTMLFilter.filter(request.getRemoteAddr()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Remote host: ");
out.print( util.HTMLFilter.filter(request.getRemoteHost()) );
out.write("\r\n");
out.write("<br>\r\n");
out.write("Authorization scheme: ");
out.print( util.HTMLFilter.filter(request.getAuthType()) );
out.write(" \r\n");
out.write("<br>\r\n");
out.write("Locale: ");
out.print( request.getLocale() );
out.write("\r\n");
out.write("<hr>\r\n");
out.write("The browser you are using is\r\n");
out.print( util.HTMLFilter.filter(request.getHeader("User-Agent")) );
out.write("\r\n");
out.write("<hr>\r\n");
out.write("</font>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,218 @@
package org.apache.jsp.jsp.tagplugin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Vector;
public final class foreach_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fend_005fbegin;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fend_005fbegin = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fend_005fbegin.release();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>Tag Plugin Examples: forEach</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>Tag Plugin Examples - &lt;c:forEach></h1>\r\n");
out.write("\r\n");
out.write(" <hr>\r\n");
out.write(" </br>\r\n");
out.write(" <a href=\"notes.html\">Plugin Introductory Notes<font <font color=\"#0000FF\"></\r\n");
out.write("a>\r\n");
out.write(" <br/>\r\n");
out.write(" <a href=\"howto.html\">Brief Instructions for Writing Plugins<font color=\"#0000\r\n");
out.write("FF\"></a>\r\n");
out.write(" <br/> <br/>\r\n");
out.write(" <hr>\r\n");
out.write("\r\n");
out.write(" <font color=\"#000000\"/>\r\n");
out.write(" </br>\r\n");
out.write("\r\n");
out.write(" \r\n");
out.write(" \r\n");
out.write("\r\n");
out.write(" <h3>Iterating over a range</h3>\r\n");
out.write(" ");
if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write(" ");
Vector v = new Vector();
v.add("One"); v.add("Two"); v.add("Three"); v.add("Four");
pageContext.setAttribute("vector", v);
out.write("\r\n");
out.write("\r\n");
out.write(" <h3>Iterating over a Vector</h3>\r\n");
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fforEach_005f1(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html> \r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005fforEach_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fend_005fbegin.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fforEach_005f0.setParent(null);
// /jsp/tagplugin/foreach.jsp(41,4) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setVar("item");
// /jsp/tagplugin/foreach.jsp(41,4) name = begin type = int reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setBegin(1);
// /jsp/tagplugin/foreach.jsp(41,4) name = end type = int reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f0.setEnd(10);
int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
try {
int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write(" ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_005fforEach_005f0.doFinally();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fend_005fbegin.reuse(_jspx_th_c_005fforEach_005f0);
}
return false;
}
private boolean _jspx_meth_c_005fforEach_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f1 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_005fforEach_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005fforEach_005f1.setParent(null);
// /jsp/tagplugin/foreach.jsp(53,4) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f1.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${vector}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
// /jsp/tagplugin/foreach.jsp(53,4) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fforEach_005f1.setVar("item");
int[] _jspx_push_body_count_c_005fforEach_005f1 = new int[] { 0 };
try {
int _jspx_eval_c_005fforEach_005f1 = _jspx_th_c_005fforEach_005f1.doStartTag();
if (_jspx_eval_c_005fforEach_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write('\r');
out.write('\n');
out.write(' ');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_005fforEach_005f1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fforEach_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_005fforEach_005f1[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_005fforEach_005f1.doCatch(_jspx_exception);
} finally {
_jspx_th_c_005fforEach_005f1.doFinally();
_005fjspx_005ftagPool_005fc_005fforEach_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f1);
}
return false;
}
}

View File

@ -0,0 +1,174 @@
package org.apache.jsp.jsp.tagplugin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class if_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_005ftest;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fc_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody.release();
_005fjspx_005ftagPool_005fc_005fif_005ftest.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>Tag Plugin Examples: if</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>Tag Plugin Examples - &lt;c:if></h1>\r\n");
out.write("\r\n");
out.write(" <hr>\r\n");
out.write(" </br>\r\n");
out.write(" <a href=\"notes.html\">Plugin Introductory Notes<font <font color=\"#0000FF\"></a>\r\n");
out.write(" <br/>\r\n");
out.write(" <a href=\"howto.html\">Brief Instructions for Wrieting Plugins<font color=\"#0000FF\"></a>\r\n");
out.write(" <br/> <br/>\r\n");
out.write(" <hr>\r\n");
out.write("\r\n");
out.write(" <font color=\"#000000\"/>\r\n");
out.write(" </br>\r\n");
out.write(" \r\n");
out.write("\r\n");
out.write(" <h3>Set the test result to a variable</h3>\r\n");
out.write(" ");
if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" The result of testing for (1==1) is: ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${theTruth}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\r\n");
out.write("\r\n");
out.write(" <h3>Conditionally execute the body</h3>\r\n");
out.write(" ");
if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
return;
out.write("\r\n");
out.write(" </body>\r\n");
out.write("</html> \r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_005fif_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fif_005f0.setParent(null);
// /jsp/tagplugin/if.jsp(37,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${1==1}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
// /jsp/tagplugin/if.jsp(37,4) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fif_005f0.setVar("theTruth");
// /jsp/tagplugin/if.jsp(37,4) name = scope type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fif_005f0.setScope("session");
int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody.reuse(_jspx_th_c_005fif_005f0);
return true;
}
_005fjspx_005ftagPool_005fc_005fif_005fvar_005ftest_005fscope_005fnobody.reuse(_jspx_th_c_005fif_005f0);
return false;
}
private boolean _jspx_meth_c_005fif_005f1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005fif_005f1.setParent(null);
// /jsp/tagplugin/if.jsp(41,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${2>0}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\tIt's true that (2>0)!\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f1);
return true;
}
_005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f1);
return false;
}
}

View File

@ -0,0 +1,108 @@
package org.apache.jsp.jsp.xml;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Date;
import java.util.Locale;
import java.text.*;
public final class xml_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
String getDateTimeStr(Locale l) {
DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, l);
return df.format(new Date());
}
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<html>");
out.write("<head>");
out.write("<title>");
out.write("Example JSP in XML format");
out.write("</title>");
out.write("</head>");
out.write("<body>");
out.write("\n");
out.write("This is the output of a simple JSP using XML format. \n");
out.write("<br/>");
out.write("<div>");
out.write("Use a jsp:scriptlet to loop from 1 to 10: ");
out.write("</div>");
// Note we need to declare CDATA because we don't escape the less than symbol
for (int i = 1; i<=10; i++) {
out.println(i);
if (i < 10) {
out.println(", ");
}
}
out.write("\n");
out.write(" <br><br>\n");
out.write("<div align=\"left\">");
out.write("\n");
out.write(" Use a jsp:expression to write the date and time in the browser's locale: \n");
out.write(" ");
out.print(getDateTimeStr(request.getLocale()));
out.write("</div>");
out.write("\n");
out.write(" <p>This sentence is enclosed in a jsp:text element.</p>\n");
out.write("</body>");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,460 @@
package org.apache.jsp.tag.web;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class displayProducts_tag
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private JspContext jspContext;
private java.io.Writer _jspx_sout;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public void setJspContext(JspContext ctx) {
super.setJspContext(ctx);
java.util.ArrayList _jspx_nested = null;
java.util.ArrayList _jspx_at_begin = null;
java.util.ArrayList _jspx_at_end = null;
_jspx_nested = new java.util.ArrayList();
_jspx_nested.add("name");
_jspx_nested.add("price");
_jspx_nested.add("origPrice");
_jspx_nested.add("salePrice");
this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
}
public JspContext getJspContext() {
return this.jspContext;
}
private javax.servlet.jsp.tagext.JspFragment normalPrice;
private javax.servlet.jsp.tagext.JspFragment onSale;
public javax.servlet.jsp.tagext.JspFragment getNormalPrice() {
return this.normalPrice;
}
public void setNormalPrice(javax.servlet.jsp.tagext.JspFragment normalPrice) {
this.normalPrice = normalPrice;
jspContext.setAttribute("normalPrice", normalPrice);
}
public javax.servlet.jsp.tagext.JspFragment getOnSale() {
return this.onSale;
}
public void setOnSale(javax.servlet.jsp.tagext.JspFragment onSale) {
this.onSale = onSale;
jspContext.setAttribute("onSale", onSale);
}
public Object getDependants() {
return _jspx_dependants;
}
private void _jspInit(ServletConfig config) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(config);
_el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) config.getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.release();
}
public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(JspContext.class,jspContext);
if( getNormalPrice() != null )
_jspx_page_context.setAttribute("normalPrice", getNormalPrice());
if( getOnSale() != null )
_jspx_page_context.setAttribute("onSale", getOnSale());
try {
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<table border=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td> \r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f0(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f1(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getNormalPrice() != null) {
getNormalPrice().invoke(_jspx_sout);
}
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td> \r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f2(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f3(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f4(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getOnSale() != null) {
getOnSale().invoke(_jspx_sout);
}
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td> \r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f5(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f6(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getNormalPrice() != null) {
getNormalPrice().invoke(_jspx_sout);
}
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td> \r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f7(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f8(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getNormalPrice() != null) {
getNormalPrice().invoke(_jspx_sout);
}
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td> \r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f9(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f10(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
if (_jspx_meth_c_005fset_005f11(_jspx_page_context))
return;
out.write("\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getOnSale() != null) {
getOnSale().invoke(_jspx_sout);
}
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
} catch( Throwable t ) {
if( t instanceof SkipPageException )
throw (SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof IllegalStateException )
throw (IllegalStateException) t;
if( t instanceof JspException )
throw (JspException) t;
throw new JspException(t);
} finally {
jspContext.getELContext().putContext(JspContext.class,super.getJspContext());
((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
_jspDestroy();
}
}
private boolean _jspx_meth_c_005fset_005f0(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f0.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(28,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f0.setVar("name");
// /WEB-INF/tags/displayProducts.tag(28,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f0.setValue(new String("Hand-held Color PDA"));
int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();
if (_jspx_th_c_005fset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
return false;
}
private boolean _jspx_meth_c_005fset_005f1(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f1 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f1.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f1.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(29,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f1.setVar("price");
// /WEB-INF/tags/displayProducts.tag(29,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f1.setValue(new String("$298.86"));
int _jspx_eval_c_005fset_005f1 = _jspx_th_c_005fset_005f1.doStartTag();
if (_jspx_th_c_005fset_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f1);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f1);
return false;
}
private boolean _jspx_meth_c_005fset_005f2(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f2 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f2.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f2.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(33,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f2.setVar("name");
// /WEB-INF/tags/displayProducts.tag(33,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f2.setValue(new String("4-Pack 150 Watt Light Bulbs"));
int _jspx_eval_c_005fset_005f2 = _jspx_th_c_005fset_005f2.doStartTag();
if (_jspx_th_c_005fset_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f2);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f2);
return false;
}
private boolean _jspx_meth_c_005fset_005f3(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f3 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f3.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f3.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(34,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f3.setVar("origPrice");
// /WEB-INF/tags/displayProducts.tag(34,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f3.setValue(new String("$2.98"));
int _jspx_eval_c_005fset_005f3 = _jspx_th_c_005fset_005f3.doStartTag();
if (_jspx_th_c_005fset_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f3);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f3);
return false;
}
private boolean _jspx_meth_c_005fset_005f4(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f4 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f4.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f4.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(35,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f4.setVar("salePrice");
// /WEB-INF/tags/displayProducts.tag(35,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f4.setValue(new String("$2.32"));
int _jspx_eval_c_005fset_005f4 = _jspx_th_c_005fset_005f4.doStartTag();
if (_jspx_th_c_005fset_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f4);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f4);
return false;
}
private boolean _jspx_meth_c_005fset_005f5(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f5 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f5.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f5.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(39,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f5.setVar("name");
// /WEB-INF/tags/displayProducts.tag(39,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f5.setValue(new String("Digital Cellular Phone"));
int _jspx_eval_c_005fset_005f5 = _jspx_th_c_005fset_005f5.doStartTag();
if (_jspx_th_c_005fset_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f5);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f5);
return false;
}
private boolean _jspx_meth_c_005fset_005f6(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f6 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f6.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f6.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(40,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f6.setVar("price");
// /WEB-INF/tags/displayProducts.tag(40,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f6.setValue(new String("$68.74"));
int _jspx_eval_c_005fset_005f6 = _jspx_th_c_005fset_005f6.doStartTag();
if (_jspx_th_c_005fset_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f6);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f6);
return false;
}
private boolean _jspx_meth_c_005fset_005f7(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f7 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f7.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f7.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(44,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f7.setVar("name");
// /WEB-INF/tags/displayProducts.tag(44,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f7.setValue(new String("Baby Grand Piano"));
int _jspx_eval_c_005fset_005f7 = _jspx_th_c_005fset_005f7.doStartTag();
if (_jspx_th_c_005fset_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f7);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f7);
return false;
}
private boolean _jspx_meth_c_005fset_005f8(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f8 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f8.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f8.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(45,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f8.setVar("price");
// /WEB-INF/tags/displayProducts.tag(45,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f8.setValue(new String("$10,800.00"));
int _jspx_eval_c_005fset_005f8 = _jspx_th_c_005fset_005f8.doStartTag();
if (_jspx_th_c_005fset_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f8);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f8);
return false;
}
private boolean _jspx_meth_c_005fset_005f9(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f9 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f9.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f9.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(49,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f9.setVar("name");
// /WEB-INF/tags/displayProducts.tag(49,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f9.setValue(new String("Luxury Car w/ Leather Seats"));
int _jspx_eval_c_005fset_005f9 = _jspx_th_c_005fset_005f9.doStartTag();
if (_jspx_th_c_005fset_005f9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f9);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f9);
return false;
}
private boolean _jspx_meth_c_005fset_005f10(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f10 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f10.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f10.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(50,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f10.setVar("origPrice");
// /WEB-INF/tags/displayProducts.tag(50,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f10.setValue(new String("$23,980.00"));
int _jspx_eval_c_005fset_005f10 = _jspx_th_c_005fset_005f10.doStartTag();
if (_jspx_th_c_005fset_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f10);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f10);
return false;
}
private boolean _jspx_meth_c_005fset_005f11(PageContext _jspx_page_context)
throws Throwable {
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f11 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_005fset_005f11.setPageContext(_jspx_page_context);
_jspx_th_c_005fset_005f11.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/displayProducts.tag(51,6) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f11.setVar("salePrice");
// /WEB-INF/tags/displayProducts.tag(51,6) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_c_005fset_005f11.setValue(new String("$21,070.00"));
int _jspx_eval_c_005fset_005f11 = _jspx_th_c_005fset_005f11.doStartTag();
if (_jspx_th_c_005fset_005f11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f11);
throw new SkipPageException();
}
_005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f11);
return false;
}
}

View File

@ -0,0 +1,89 @@
package org.apache.jsp.tag.web;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class helloWorld_tag
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private JspContext jspContext;
private java.io.Writer _jspx_sout;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public void setJspContext(JspContext ctx) {
super.setJspContext(ctx);
java.util.ArrayList _jspx_nested = null;
java.util.ArrayList _jspx_at_begin = null;
java.util.ArrayList _jspx_at_end = null;
this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
}
public JspContext getJspContext() {
return this.jspContext;
}
public Object getDependants() {
return _jspx_dependants;
}
private void _jspInit(ServletConfig config) {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) config.getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(JspContext.class,jspContext);
try {
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("Hello, world!\r\n");
} catch( Throwable t ) {
if( t instanceof SkipPageException )
throw (SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof IllegalStateException )
throw (IllegalStateException) t;
if( t instanceof JspException )
throw (JspException) t;
throw new JspException(t);
} finally {
jspContext.getELContext().putContext(JspContext.class,super.getJspContext());
((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
}
}
}

View File

@ -0,0 +1,149 @@
package org.apache.jsp.tag.web;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class panel_tag
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private JspContext jspContext;
private java.io.Writer _jspx_sout;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public void setJspContext(JspContext ctx) {
super.setJspContext(ctx);
java.util.ArrayList _jspx_nested = null;
java.util.ArrayList _jspx_at_begin = null;
java.util.ArrayList _jspx_at_end = null;
this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
}
public JspContext getJspContext() {
return this.jspContext;
}
private java.lang.String color;
private java.lang.String bgcolor;
private java.lang.String title;
public java.lang.String getColor() {
return this.color;
}
public void setColor(java.lang.String color) {
this.color = color;
jspContext.setAttribute("color", color);
}
public java.lang.String getBgcolor() {
return this.bgcolor;
}
public void setBgcolor(java.lang.String bgcolor) {
this.bgcolor = bgcolor;
jspContext.setAttribute("bgcolor", bgcolor);
}
public java.lang.String getTitle() {
return this.title;
}
public void setTitle(java.lang.String title) {
this.title = title;
jspContext.setAttribute("title", title);
}
public Object getDependants() {
return _jspx_dependants;
}
private void _jspInit(ServletConfig config) {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) config.getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(JspContext.class,jspContext);
if( getColor() != null )
_jspx_page_context.setAttribute("color", getColor());
if( getBgcolor() != null )
_jspx_page_context.setAttribute("bgcolor", getBgcolor());
if( getTitle() != null )
_jspx_page_context.setAttribute("title", getTitle());
try {
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<table border=\"1\" bgcolor=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${color}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
out.write("\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><b>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${title}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
out.write("</b></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td bgcolor=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${bgcolor}", java.lang.String.class, (PageContext)this.getJspContext(), null, false));
out.write("\">\r\n");
out.write(" ");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getJspBody() != null)
getJspBody().invoke(_jspx_sout);
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
} catch( Throwable t ) {
if( t instanceof SkipPageException )
throw (SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof IllegalStateException )
throw (IllegalStateException) t;
if( t instanceof JspException )
throw (JspException) t;
throw new JspException(t);
} finally {
jspContext.getELContext().putContext(JspContext.class,super.getJspContext());
((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
}
}
}

View File

@ -0,0 +1,98 @@
package org.apache.jsp.tag.web;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class xhtmlbasic_tag
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private JspContext jspContext;
private java.io.Writer _jspx_sout;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public void setJspContext(JspContext ctx) {
super.setJspContext(ctx);
java.util.ArrayList _jspx_nested = null;
java.util.ArrayList _jspx_at_begin = null;
java.util.ArrayList _jspx_at_end = null;
this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
}
public JspContext getJspContext() {
return this.jspContext;
}
public Object getDependants() {
return _jspx_dependants;
}
private void _jspInit(ServletConfig config) {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) config.getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(JspContext.class,jspContext);
try {
out.write("<!--\r\n");
out.write(" Licensed to the Apache Software Foundation (ASF) under one or more\r\n");
out.write(" contributor license agreements. See the NOTICE file distributed with\r\n");
out.write(" this work for additional information regarding copyright ownership.\r\n");
out.write(" The ASF licenses this file to You under the Apache License, Version 2.0\r\n");
out.write(" (the \"License\"); you may not use this file except in compliance with\r\n");
out.write(" the License. You may obtain a copy of the License at\r\n");
out.write("\r\n");
out.write(" http://www.apache.org/licenses/LICENSE-2.0\r\n");
out.write("\r\n");
out.write(" Unless required by applicable law or agreed to in writing, software\r\n");
out.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\r\n");
out.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n");
out.write(" See the License for the specific language governing permissions and\r\n");
out.write(" limitations under the License.\r\n");
out.write("-->\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Basic 1.0//EN\"\r\n");
out.write("\"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd\">\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
_jspx_sout = null;
if (getJspBody() != null)
getJspBody().invoke(_jspx_sout);
jspContext.getELContext().putContext(JspContext.class,getJspContext());
out.write("\r\n");
out.write("</html>\r\n");
} catch( Throwable t ) {
if( t instanceof SkipPageException )
throw (SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof IllegalStateException )
throw (IllegalStateException) t;
if( t instanceof JspException )
throw (JspException) t;
throw new JspException(t);
} finally {
jspContext.getELContext().putContext(JspContext.class,super.getJspContext());
((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
}
}
}

View File

@ -0,0 +1,103 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class _401_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
response.setHeader("WWW-Authenticate", "Basic realm=\"Tomcat Manager Application\"");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <title>401 Unauthorized</title>\r\n");
out.write(" <style>\r\n");
out.write(" <!--\r\n");
out.write(" BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}\r\n");
out.write(" H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}\r\n");
out.write(" PRE, TT {border: 1px dotted #525D76}\r\n");
out.write(" A {color : black;}A.name {color : black;}\r\n");
out.write(" -->\r\n");
out.write(" </style>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <h1>401 Unauthorized</h1>\r\n");
out.write(" <p>\r\n");
out.write(" You are not authorized to view this page. If you have not changed\r\n");
out.write(" any configuration files, please examine the file\r\n");
out.write(" <tt>conf/tomcat-users.xml</tt> in your installation. That\r\n");
out.write(" file will contain the credentials to let you use this webapp.\r\n");
out.write(" </p>\r\n");
out.write(" <p>\r\n");
out.write(" You will need to add <tt>manager</tt> role to the config file listed above.\r\n");
out.write(" For example:\r\n");
out.write("<pre>\r\n");
out.write("&lt;role rolename=\"manager\"/&gt;\r\n");
out.write("&lt;user username=\"tomcat\" password=\"s3cret\" roles=\"manager\"/&gt;\r\n");
out.write("</pre>\r\n");
out.write(" </p>\r\n");
out.write(" <p>\r\n");
out.write(" For more information - please see the\r\n");
out.write(" <a href=\"/docs/manager-howto.html\">Manager App HOW-TO</a>.\r\n");
out.write(" </p>\r\n");
out.write(" </body>\r\n");
out.write("\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}