Added missing empty folders and changed lex.xml back to resource - resourceparams, leaving the option of not using resourceparams (for usage with tomcat 5.5) bracketed.

This commit is contained in:
amontano 2005-02-27 06:59:24 +00:00
parent 8cd668090c
commit 6b6cd0cd08
58 changed files with 5735 additions and 1 deletions

View File

View File

View File

View File

@ -1,4 +1,97 @@
<Context path="/lex" docBase="C:\Documents and Settings\Andres Montano\My Documents\docs-misc\java\DictionarySearch\src\Dictionary\webroot" workDir="C:\Documents and Settings\Andres Montano\My Documents\docs-misc\java\DictionarySearch\src\Dictionary\work" debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/lex-datasource">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/Lex?useUnicode=true&amp;characterEncoding=UTF-8</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>javauser</value>
</parameter>
<parameter>
<name>password</name>
<value>javadude</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>7</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>15</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
</ResourceParams>
<Resource name="jdbc/thdl-users-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/thdl-users-datasource">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/ThdlUsers</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>javauser</value>
</parameter>
<parameter>
<name>password</name>
<value>javadude</value>
</parameter>
<parameter>
<name>useUnicode</name>
<value>true</value>
</parameter>
<parameter>
<name>characterEncoding</name>
<value>utf-8</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>7</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>15</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
</ResourceParams>
<!-- Jakarta Tomcat 5.5 does not accept the resource & resourceparams partnership. There use this:
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
@ -22,7 +115,7 @@
maxWait="5000"
maxIdle="7"
maxActive="15"
removeAbandoned="true"/>
removeAbandoned="true"/>-->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access" prefix="lex_access_log." suffix=".txt" pattern="combined" resolveHosts="true"/>
</Context>

0
tomcat/logs/access/empty Normal file
View File

View File

View File

View File

View File

View File

View File

0
tomcat/temp/empty Normal file
View File

0
tomcat/webapps/empty Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,72 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
"/jsp/error.jsp", true, 12288, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/header.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<div id=\"columnSingle\">\r\n");
out.write("<h2>Dictionary Welcome Page</h2>\r\n");
out.write("<p>\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/navLinks.jsf", out, false);
out.write("\r\n");
out.write("</p>\r\n");
out.write("\r\n");
out.write("</div><!--END columnSingle-->\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/footer.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,141 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import org.thdl.lex.*;
import org.thdl.lex.component.*;
public final class error_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
if (exception != null) {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 524288, false);
_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("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"DTD/xhtml1-strict.dtd\">\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\r\n");
out.write("<head>\r\n");
out.write("<style>\r\n");
out.write("#debug table\r\n");
out.write("{\r\n");
out.write("border: black solid 1px;\r\n");
out.write("/* border-collapse:collapse;\r\n");
out.write("border-color: black;\r\n");
out.write("border-style:solid; \r\n");
out.write("border-weight:1px; */\r\n");
out.write("color:black;\r\n");
out.write("width: 790px;;\r\n");
out.write("margin:5px 5px 5px 5px;\r\n");
out.write("}\r\n");
out.write("#debug th, #debug td\r\n");
out.write("{\r\n");
out.write("border: black solid 1px;\r\n");
out.write("background-color:cyan;\r\n");
out.write("font-size:.9em;\r\n");
out.write("text-align: left;\r\n");
out.write("vertical-align: top;\r\n");
out.write("}\r\n");
out.write("</style>\r\n");
out.write("\r\n");
out.write("<title>THDL Dictionary Error Page</title>\r\n");
out.write("</head>\r\n");
out.write("<body> \r\n");
out.write("\r\n");
out.write("<div id=\"error\">\r\n");
out.write("<p>\r\n");
out.write("You have reached the Error page. \r\n");
out.write("This page indicates that Lex has caught an exception that it does not know how to deal with. \r\n");
out.write("The message appears below.<br />\r\n");
out.write("<a href=\"/lex/action\">Return to the home page.</a> <br /><br />\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<b>Message: </b> ");
out.print( exception.getMessage() );
out.write(" <br /><br />\r\n");
out.write("\r\n");
if (request.getAttribute("comp") != null)
{ LexComponent lab = (LexComponent) request.getAttribute("comp");
out.write("\r\n");
out.write("<b> Label: </b> <i> ");
out.print( lab );
out.write(" </i><br /><br /> \r\n");
out.write("\r\n");
}
out.write(" <br /><br />\r\n");
out.write("\r\n");
out.write("<b>Stack Trace: </b>\r\n");
StringWriter writer = new StringWriter();
exception.printStackTrace( new PrintWriter(writer) );
String stackTrace = writer.getBuffer().toString();
out.write("\r\n");
out.write("<pre>\r\n");
out.print( stackTrace );
out.write("\r\n");
out.write("</pre> \r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</p>\r\n");
out.write("</div>\r\n");
out.write("\r\n");
out.write("\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)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,72 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.LexLogger;
public final class footer_jsf extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
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("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</div><!--END Main-->\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
out.write("\r\n");
LexLogger.debug( "Footer.jsf has finished rendering." );
out.write('\r');
out.write('\n');
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

View File

@ -0,0 +1,154 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
public final class header_jsf extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
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("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8;\" />\r\n");
out.write("\r\n");
out.write("<script type='text/javascript' src='http://iris.lib.virginia.edu/tibet/scripts/thdl_scripts.js'></script>\r\n");
out.write("<script type='text/javascript' src='/lex/js/lex.js'></script>\r\n");
out.write("\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"/lex/css/lex.css\" />\r\n");
out.write("\r\n");
out.write("<title>THDL Tibetan Collaborative Dictionaries</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("/* ");
out.print( org.thdl.tib.text.TibetanHTML.getStyles( "20" ) );
out.write(" */\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<body> \r\n");
out.write("\r\n");
out.write("<div id=\"banner\">\r\n");
out.write("\t<a id=\"logo\" href=\"http://iris.lib.virginia.edu/tibet/index.html\"><img id=\"test\" alt=\"THDL Logo\" src=\"http://iris.lib.virginia.edu/tibet/images/logo.png\"/></a>\r\n");
out.write("\t<h1>The Tibetan &amp; Himalayan Digital Library</h1>\r\n");
out.write("\r\n");
out.write("\t<div id=\"menubar\">\r\n");
out.write("\t\t");
out.write("\r\n");
out.write("\t</div><!--END menubar-->\r\n");
out.write("</div><!--END banner-->\r\n");
out.write("\r\n");
out.write("<div id=\"sub_banner\">\r\n");
out.write("\t<div id=\"search\">\r\n");
out.write("\t\t<form method=\"get\" action=\"http://www.google.com/u/thdl\">\r\n");
out.write("\t\t\t<p>\r\n");
out.write("\t\t\t\t<input type=\"text\" name=\"q\" id=\"q\" size=\"15\" maxlength=\"255\" value=\"\" />\r\n");
out.write("\t\t\t\t<input type=\"submit\" name=\"sa\" id=\"sa\" value=\"Search\"/>\r\n");
out.write("\t\t\t\t<input type=\"hidden\" name=\"hq\" id=\"hq\" value=\"inurl:iris.lib.virginia.edu\"/>\r\n");
out.write("\t\t\t</p>\r\n");
out.write("\t\t</form>\r\n");
out.write("\t</div>\r\n");
out.write("\r\n");
out.write("\t <div id=\"breadcrumbs\">\r\n");
out.write("\t\t<a href=\"http://iris.lib.virginia.edu/tibet/index.html\">THDL</a> &gt;\r\n");
out.write("\t\t<a href=\"http://iris.lib.virginia.edu/tibet/reference/index.html\">Reference</a> &gt;\r\n");
out.write("\t\tTHDL Tibetan Collaborative Dictionaries\r\n");
out.write("\t</div> \r\n");
out.write("</div><!--END sub_banner-->\r\n");
out.write("\r\n");
out.write("<div id=\"main\">\r\n");
out.write("\r\n");
out.write('\r');
out.write('\n');
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest("${ ! sessionScope.visit.helper.showEditOptions }");
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("p.data\r\n");
out.write("{\r\n");
out.write("border: none;\r\n");
out.write("}\r\n");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
}

View File

@ -0,0 +1,568 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
import org.thdl.lex.component.*;
public final class menu_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_value_target_property_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_escapeXml_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_set_value_target_property_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_escapeXml_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_set_var_value_nobody.release();
_jspx_tagPool_c_if_test.release();
_jspx_tagPool_c_set_value_target_property_nobody.release();
_jspx_tagPool_c_out_value_nobody.release();
_jspx_tagPool_c_forEach_var_items.release();
_jspx_tagPool_c_out_value_escapeXml_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
"/jsp/error.jsp", true, 524288, false);
_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");
request.setCharacterEncoding("UTF-8");
out.write("\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsf", out, false);
out.write("\r\n");
out.write("<!--menu.jsp-->\r\n");
if (_jspx_meth_c_set_0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("<div id=\"columnLeft\">\r\n");
out.write("\t\r\n");
out.write("\t<div class=\"highlightBox\">\r\n");
out.write("\t<form id=\"quickSearch\" action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<h2>Dictionary Quick Search</h2>\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"find\" />\r\n");
out.write("\t<input type=\"hidden\" name=\"comp\" value=\"term\" />\r\n");
out.write("\tTerm: <input type=\"text\" name=\"term\" id=\"term\" size=\"20\" value=\"\" /> <br />\r\n");
out.write("\tFind:\r\n");
out.write("\r\n");
out.write("\t<select name=\"findMode\">\r\n");
out.write("\t\t<option value=\"exact\">Exact match</option>\r\n");
out.write("\t\t<option value=\"startsWith\">At beginning of term</option>\r\n");
out.write("\t\t<option value=\"anywhere\">Anywhere in term</option>\r\n");
out.write("\t</select>\r\n");
out.write("\t</p>\r\n");
out.write("\t\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"submit\" value=\"Find Term\"/>\r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("\t</div>\r\n");
out.write("\t\r\n");
out.write("\t");
if (_jspx_meth_c_if_1(_jspx_page_context))
return;
out.write("\r\n");
out.write("</div><!--END COLUMN LEFT-->\r\n");
out.write("\t\r\n");
out.write("<div id=\"columnCenter\">\r\n");
out.write("\t");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "navLinks.jsf", out, false);
out.write("\r\n");
out.write("\t<h1>THDL Tibetan Collaborative Dictionaries: Main Menu</h1>\r\n");
out.write("\t<p>\r\n");
out.write("\t\t");
if (_jspx_meth_c_set_2(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t\t<span class=\"label\">Last Update</span>: ");
if (_jspx_meth_c_out_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t</p>\r\n");
out.write("\t");
if (_jspx_meth_c_if_2(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("\t<h2>Recently Modified Terms</h2>\r\n");
out.write("\r\n");
out.write("\t<div id=\"recentTerms\">\r\n");
out.write("\r\n");
out.write("\t\r\n");
out.write("\t");
if (_jspx_meth_c_forEach_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t</div><!--END RECENT TERMS-->\r\n");
out.write("</div><!--END COLUMN CENTER-->\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent(null);
_jspx_th_c_set_0.setVar("editMode");
_jspx_th_c_set_0.setValue("${ false }");
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
return false;
}
private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest("${ ! sessionScope.visit.user.guest }");
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write('\r');
out.write('\n');
out.write(' ');
if (_jspx_meth_c_set_1(_jspx_th_c_if_0, _jspx_page_context))
return true;
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_set_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_1 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_1.setPageContext(_jspx_page_context);
_jspx_th_c_set_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
_jspx_th_c_set_1.setVar("editMode");
_jspx_th_c_set_1.setValue("${ true }");
int _jspx_eval_c_set_1 = _jspx_th_c_set_1.doStartTag();
if (_jspx_th_c_set_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_1);
return false;
}
private boolean _jspx_meth_c_if_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(_jspx_page_context);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest("${ editMode }");
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\r\n");
out.write("\t<div class=\"highlightBox\">\r\n");
out.write("\t<form id=\"newTerm\" action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<h2>Add a new term</h2>\t\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"getInsertTermForm\" />\r\n");
out.write("\t<input type=\"hidden\" name=\"comp\" value=\"term\" />\r\n");
out.write("\tTerm: <input type=\"text\" name=\"term\" id=\"term\" size=\"20\" value=\"\" />\r\n");
out.write("\t</p>\r\n");
out.write("\t<p class=\"inlineDocumentation\">\r\n");
out.write("\tNote: if an exact match of this term already exists, this action will direct to the edit page for that term.\r\n");
out.write("\t</p>\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"submit\" value=\"New Entry\" /> <br />\r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("\t</div>\r\n");
out.write("\t\r\n");
out.write("\t<div class=\"highlightBox\">\r\n");
out.write("\t<h2>Defaults &amp; Preferences</h2>\r\n");
out.write("\t<form id=\"defaults\" action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"getMetaDefaultsForm\" />\r\n");
out.write("\t<input type=\"submit\" value=\"Defaults\"/> \r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("\t\r\n");
out.write("\t<form id=\"preferences\" action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"getMetaPrefsForm\" />\r\n");
out.write("\t<input type=\"submit\" value=\"Preferences\" /> <br />\r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("\r\n");
out.write("\t<form id=\"oai\" action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"refreshSources\" />\r\n");
out.write("\t<input type=\"submit\" value=\"Refresh Sources\" /> <br />\r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("<p><span class=\"warning\">This dictionary requires the <a href=\"http://iris.lib.virginia.edu/tibet/tools/tmw.html\">TibetanMachineWeb font</a> to display Tibetan script.</span></p>\r\n");
out.write("\r\n");
out.write("\t</div>\r\n");
out.write("\t\r\n");
out.write("\t");
int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
return false;
}
private boolean _jspx_meth_c_set_2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_2 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_value_target_property_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_2.setPageContext(_jspx_page_context);
_jspx_th_c_set_2.setParent(null);
_jspx_th_c_set_2.setTarget("${ sessionScope.visit.helper }");
_jspx_th_c_set_2.setProperty("date");
_jspx_th_c_set_2.setValue("${ applicationScope.global.lastUpdate }");
int _jspx_eval_c_set_2 = _jspx_th_c_set_2.doStartTag();
if (_jspx_th_c_set_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_value_target_property_nobody.reuse(_jspx_th_c_set_2);
return false;
}
private boolean _jspx_meth_c_out_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent(null);
_jspx_th_c_out_0.setValue("${ sessionScope.visit.helper.formattedDate }");
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
return false;
}
private boolean _jspx_meth_c_if_2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_2 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_2.setPageContext(_jspx_page_context);
_jspx_th_c_if_2.setParent(null);
_jspx_th_c_if_2.setTest("${ ! empty message }");
int _jspx_eval_c_if_2 = _jspx_th_c_if_2.doStartTag();
if (_jspx_eval_c_if_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t<p id=\"message\">\r\n");
out.write("\t\t");
if (_jspx_meth_c_out_1(_jspx_th_c_if_2, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t</p>\r\n");
out.write("\t");
int evalDoAfterBody = _jspx_th_c_if_2.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_2);
return false;
}
private boolean _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_2, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_1 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_1.setPageContext(_jspx_page_context);
_jspx_th_c_out_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_2);
_jspx_th_c_out_1.setValue("${ message }");
int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_1);
return false;
}
private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.el.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.el.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.el.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setVar("term");
_jspx_th_c_forEach_0.setItems("${applicationScope.global.recentTerms }");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t\t<p class=\"tmw-block\">\r\n");
out.write("\t\t");
if (_jspx_meth_c_set_3(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("\r\n");
out.write("\t\t");
if (_jspx_meth_c_set_4(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("\r\n");
out.write("\t\t");
if (_jspx_meth_c_out_2(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write(" \r\n");
out.write("\t\t&nbsp;&nbsp;&nbsp;\r\n");
out.write("\t\t");
if (_jspx_meth_c_out_3(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write(" \r\n");
out.write("\t\t&nbsp;&nbsp;\r\n");
out.write("\t\t<span class=\"tmw-roman\">\r\n");
out.write("\t\tCreated by ");
if (_jspx_meth_c_out_4(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write(" \r\n");
out.write("\t\t");
if (_jspx_meth_c_set_5(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("\r\n");
out.write("\t\t");
if (_jspx_meth_c_out_5(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("\r\n");
out.write("\t\t</span>\r\n");
out.write("\t\t</p>\r\n");
out.write("\t");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
return false;
}
private boolean _jspx_meth_c_set_3(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_3 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_value_target_property_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_3.setPageContext(_jspx_page_context);
_jspx_th_c_set_3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_set_3.setTarget("${ sessionScope.visit.helper}");
_jspx_th_c_set_3.setProperty("wylie");
_jspx_th_c_set_3.setValue("${ term.term }");
int _jspx_eval_c_set_3 = _jspx_th_c_set_3.doStartTag();
if (_jspx_th_c_set_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_value_target_property_nobody.reuse(_jspx_th_c_set_3);
return false;
}
private boolean _jspx_meth_c_set_4(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_4 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_4.setPageContext(_jspx_page_context);
_jspx_th_c_set_4.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_set_4.setVar("tib");
_jspx_th_c_set_4.setValue("${ sessionScope.visit.helper.tibetan } ");
int _jspx_eval_c_set_4 = _jspx_th_c_set_4.doStartTag();
if (_jspx_th_c_set_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_4);
return false;
}
private boolean _jspx_meth_c_out_2(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_2 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_escapeXml_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_2.setPageContext(_jspx_page_context);
_jspx_th_c_out_2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_out_2.setValue("<a class='tmw-link' href='/lex/action?cmd=displayFull&comp=term&metaId=${term.metaId}'>${ tib } </a>");
_jspx_th_c_out_2.setEscapeXml("false");
int _jspx_eval_c_out_2 = _jspx_th_c_out_2.doStartTag();
if (_jspx_th_c_out_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_escapeXml_nobody.reuse(_jspx_th_c_out_2);
return false;
}
private boolean _jspx_meth_c_out_3(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_3 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_escapeXml_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_3.setPageContext(_jspx_page_context);
_jspx_th_c_out_3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_out_3.setValue("<a href='/lex/action?cmd=displayFull&comp=term&metaId=${term.metaId}'><span class='tmw-roman'>${ term.term }</span></a>");
_jspx_th_c_out_3.setEscapeXml("false");
int _jspx_eval_c_out_3 = _jspx_th_c_out_3.doStartTag();
if (_jspx_th_c_out_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_escapeXml_nobody.reuse(_jspx_th_c_out_3);
return false;
}
private boolean _jspx_meth_c_out_4(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_4 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_4.setPageContext(_jspx_page_context);
_jspx_th_c_out_4.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_out_4.setValue("${ applicationScope.flatData.users[ term.meta.createdBy ] }");
int _jspx_eval_c_out_4 = _jspx_th_c_out_4.doStartTag();
if (_jspx_th_c_out_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_4);
return false;
}
private boolean _jspx_meth_c_set_5(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_5 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_value_target_property_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_5.setPageContext(_jspx_page_context);
_jspx_th_c_set_5.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_set_5.setTarget("${ sessionScope.visit.helper }");
_jspx_th_c_set_5.setProperty("date");
_jspx_th_c_set_5.setValue("${ term.meta.modifiedOn }");
int _jspx_eval_c_set_5 = _jspx_th_c_set_5.doStartTag();
if (_jspx_th_c_set_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_value_target_property_nobody.reuse(_jspx_th_c_set_5);
return false;
}
private boolean _jspx_meth_c_out_5(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_5 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_5.setPageContext(_jspx_page_context);
_jspx_th_c_out_5.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_out_5.setValue("${ sessionScope.visit.helper.formattedDate }");
int _jspx_eval_c_out_5 = _jspx_th_c_out_5.doStartTag();
if (_jspx_th_c_out_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_5);
return false;
}
}

View File

@ -0,0 +1,176 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class navLinks_jsf extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_when_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_otherwise;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_choose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_when_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_otherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_choose.release();
_jspx_tagPool_c_when_test.release();
_jspx_tagPool_c_otherwise.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
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("\r\n");
out.write("<ul class=\"navLinks\">\r\n");
out.write("<li>\r\n");
out.write("<a href=\"http://iris.lib.virginia.edu/tibet/reference/dictionary.html\">Dictionary Home</a> | \r\n");
out.write("</li>\r\n");
out.write("<li>\r\n");
out.write("<a href=\"/lex/action?cmd=menu\" title=\"Main Menu\">Main Menu</a> | \r\n");
out.write("</li>\r\n");
out.write("<li>\r\n");
out.write("<a href=\"/lex/action?cmd=search\" title=\"Advanced Search\">Advanced Search</a>\r\n");
out.write("</li>\r\n");
out.write("\r\n");
if (_jspx_meth_c_choose_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("</ul>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_choose_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:choose
org.apache.taglibs.standard.tag.common.core.ChooseTag _jspx_th_c_choose_0 = (org.apache.taglibs.standard.tag.common.core.ChooseTag) _jspx_tagPool_c_choose.get(org.apache.taglibs.standard.tag.common.core.ChooseTag.class);
_jspx_th_c_choose_0.setPageContext(_jspx_page_context);
_jspx_th_c_choose_0.setParent(null);
int _jspx_eval_c_choose_0 = _jspx_th_c_choose_0.doStartTag();
if (_jspx_eval_c_choose_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write('\r');
out.write('\n');
if (_jspx_meth_c_when_0(_jspx_th_c_choose_0, _jspx_page_context))
return true;
out.write('\r');
out.write('\n');
if (_jspx_meth_c_otherwise_0(_jspx_th_c_choose_0, _jspx_page_context))
return true;
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_choose_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_choose_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_choose.reuse(_jspx_th_c_choose_0);
return false;
}
private boolean _jspx_meth_c_when_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_choose_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:when
org.apache.taglibs.standard.tag.el.core.WhenTag _jspx_th_c_when_0 = (org.apache.taglibs.standard.tag.el.core.WhenTag) _jspx_tagPool_c_when_test.get(org.apache.taglibs.standard.tag.el.core.WhenTag.class);
_jspx_th_c_when_0.setPageContext(_jspx_page_context);
_jspx_th_c_when_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_choose_0);
_jspx_th_c_when_0.setTest("${ sessionScope.visit.user.guest || empty sessionScope.visit }");
int _jspx_eval_c_when_0 = _jspx_th_c_when_0.doStartTag();
if (_jspx_eval_c_when_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("<li>\r\n");
out.write(" | <a href=\"/lex/login.jsp\">Login</a>\r\n");
out.write("</li>\r\n");
int evalDoAfterBody = _jspx_th_c_when_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_when_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_when_test.reuse(_jspx_th_c_when_0);
return false;
}
private boolean _jspx_meth_c_otherwise_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_choose_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:otherwise
org.apache.taglibs.standard.tag.common.core.OtherwiseTag _jspx_th_c_otherwise_0 = (org.apache.taglibs.standard.tag.common.core.OtherwiseTag) _jspx_tagPool_c_otherwise.get(org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class);
_jspx_th_c_otherwise_0.setPageContext(_jspx_page_context);
_jspx_th_c_otherwise_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_choose_0);
int _jspx_eval_c_otherwise_0 = _jspx_th_c_otherwise_0.doStartTag();
if (_jspx_eval_c_otherwise_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("<li>\r\n");
out.write(" | <a href=\"/lex/logout.jsp\">Logout</a>\r\n");
out.write("</li>\r\n");
int evalDoAfterBody = _jspx_th_c_otherwise_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_otherwise_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_otherwise.reuse(_jspx_th_c_otherwise_0);
return false;
}
}

View File

@ -0,0 +1,265 @@
package org.apache.jsp.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
import org.thdl.lex.component.*;
public final class search_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_set_var_value_nobody.release();
_jspx_tagPool_c_if_test.release();
_jspx_tagPool_c_out_value_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
"/jsp/error.jsp", true, 524288, false);
_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");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsf", out, false);
out.write("\r\n");
out.write("<!--menu.jsp-->\r\n");
if (_jspx_meth_c_set_0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("<div id=\"columnLeft\">\r\n");
out.write("\t\r\n");
out.write("\t<div class=\"highlightBox\">\r\n");
out.write("\t<form action=\"/lex/action\" method=\"get\" >\r\n");
out.write("\t<h2>Find a term</h2>\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"hidden\" name=\"cmd\" value=\"find\" />\r\n");
out.write("\t<input type=\"hidden\" name=\"comp\" value=\"term\" />\r\n");
out.write("\tTerm: <input type=\"text\" name=\"term\" id=\"term\" size=\"20\" value=\"\" /> <br />\r\n");
out.write("\tFind:\r\n");
out.write("\r\n");
out.write("\t<select name=\"findMode\">\r\n");
out.write("\t\t<option value=\"exact\">Exact match</option>\r\n");
out.write("\t\t<option value=\"startsWith\">At beginning of term</option>\r\n");
out.write("\t\t<option value=\"anywhere\">Anywhere in term</option>\r\n");
out.write("\t</select>\r\n");
out.write("\t</p>\r\n");
out.write("\t\r\n");
out.write("\t<p>\r\n");
out.write("\t<input type=\"submit\" value=\"Find Term\"/>\r\n");
out.write("\t</p>\r\n");
out.write("\t</form>\r\n");
out.write("\t</div>\r\n");
out.write("</div><!--END COLUMN LEFT-->\r\n");
out.write("\t\r\n");
out.write("<div id=\"columnCenter\">\r\n");
out.write("\t");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "navLinks.jsf", out, false);
out.write("\r\n");
out.write("\t<h1>THDL Tibetan Collaborative Dictionaries: Advanced Search</h1>\r\n");
out.write("\t<p>\r\n");
out.write("\t\t<span class=\"label\">Last Update</span>: ");
if (_jspx_meth_c_out_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t</p>\r\n");
out.write("\t<p>\r\n");
out.write("\t\tThis page is under Construction\r\n");
out.write("\t</p>\r\n");
out.write("\t");
if (_jspx_meth_c_if_1(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("</div><!--END COLUMN CENTER-->\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent(null);
_jspx_th_c_set_0.setVar("editMode");
_jspx_th_c_set_0.setValue(new String("${ false }"));
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
return false;
}
private boolean _jspx_meth_c_if_0(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_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(false);
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write('\r');
out.write('\n');
out.write(' ');
if (_jspx_meth_c_set_1(_jspx_th_c_if_0, _jspx_page_context))
return true;
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_set_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_1 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_set_1.setPageContext(_jspx_page_context);
_jspx_th_c_set_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
_jspx_th_c_set_1.setVar("editMode");
_jspx_th_c_set_1.setValue(new String("${ true }"));
int _jspx_eval_c_set_1 = _jspx_th_c_set_1.doStartTag();
if (_jspx_th_c_set_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_1);
return false;
}
private boolean _jspx_meth_c_out_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent(null);
_jspx_th_c_out_0.setValue(new String("${ applicationScope.global.lastUpdate }"));
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
return false;
}
private boolean _jspx_meth_c_if_1(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_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(_jspx_page_context);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest(false);
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t<p id=\"message\">\r\n");
out.write("\t\t");
if (_jspx_meth_c_out_1(_jspx_th_c_if_1, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t</p>\r\n");
out.write("\t");
int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
return false;
}
private boolean _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_1, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
_jspx_th_c_out_1.setPageContext(_jspx_page_context);
_jspx_th_c_out_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_1);
_jspx_th_c_out_1.setValue(new String("${ message }"));
int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_1);
return false;
}
}

View File

@ -0,0 +1,179 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_escapeXml_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_escapeXml_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.release();
_jspx_tagPool_c_set_var_value_nobody.release();
_jspx_tagPool_c_out_value_escapeXml_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
"/jsp/error.jsp", true, 524288, false);
_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");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/header.jsf", out, false);
out.write("\r\n");
out.write("<div id=\"label\">\r\n");
out.write("Please login to use the THDL Tibetan Collaborative Dictionaries\r\n");
out.write("</div><!--END label-->\r\n");
out.write("<div id=\"message\">Message</div><!--END Message-->\r\n");
out.write("<div id=\"columnSingle\">\r\n");
out.write("<div class=\"content\">\r\n");
out.write("\r\n");
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<form id='loginForm' action='/lex/login' method=\"post\">\r\n");
out.write("<p>\r\n");
out.write("Username: ");
if (_jspx_meth_c_out_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("<br />\r\n");
out.write("Password: <input type='password' name='password' size='20' value=''>\r\n");
out.write("<br />\r\n");
out.write("<input type='submit' value='Log in'>\r\n");
out.write("</p>\r\n");
out.write("</form>\r\n");
out.write("<form action='/lex/public' method=\"post\">\r\n");
out.write("<p>\r\n");
out.write("If you would just like to browse the dictionary without contributing please proceed here.\r\n");
out.write("<input type=\"submit\" value=\"Proceed\" />\r\n");
out.write("</p>\r\n");
out.write("</form>\r\n");
out.write("</div><!--END content-->\r\n");
out.write("</div><!--END columnSingle-->\r\n");
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/footer.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest("${ ! empty param.retry }");
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t<p style=\"color:red\"> Invalid username/password combination.</p>\r\n");
out.write("\t");
if (_jspx_meth_c_set_0(_jspx_th_c_if_0, _jspx_page_context))
return true;
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_set_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
_jspx_th_c_set_0.setVar("usernameValue");
_jspx_th_c_set_0.setValue("${ param.username }");
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
return false;
}
private boolean _jspx_meth_c_out_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_escapeXml_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent(null);
_jspx_th_c_out_0.setValue("<input type='text' name='username' size='16' value='${ usernameValue }'>");
_jspx_th_c_out_0.setEscapeXml("false");
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_escapeXml_nobody.reuse(_jspx_th_c_out_0);
return false;
}
}

View File

@ -0,0 +1,116 @@
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.thdl.lex.*;
public final class logout_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/WEB-INF/tld/c.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_out_value_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
"/jsp/error.jsp", true, 524288, false);
_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");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/header.jsf", out, false);
out.write("\r\n");
out.write("\r\n");
out.write("<div id=\"columns\">\r\n");
out.write("<div id=\"columnSingle\">\r\n");
out.write("<div class=\"label\">\r\n");
out.write("Log out of THDL Tibetan Collaborative Dictionaries</div>\r\n");
out.write("\r\n");
out.write("<div class=\"content\">\r\n");
out.write("\r\n");
out.write("<p>\r\n");
out.write("Log out account <b>");
if (_jspx_meth_c_out_0(_jspx_page_context))
return;
out.write("</b>\r\n");
out.write("</p>\r\n");
out.write("\r\n");
out.write("<form action='");
out.print( response.encodeURL( request.getContextPath() + "/logout" ));
out.write("' method=\"post\">\r\n");
out.write("<input type=\"submit\" value=\"Log out\">\r\n");
out.write("</form>\r\n");
out.write("\r\n");
out.write("</div>\r\n");
out.write("</div>\r\n");
out.write("</div>\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "jsp/footer.jsf", out, false);
out.write('\r');
out.write('\n');
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_out_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent(null);
_jspx_th_c_out_0.setValue("${ sessionScope.visit.user.username }");
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
return false;
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.