Anoop's major update. Everything has changed location.
28
webroot/META-INF/context.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<Context path="/lex" docBase="C:\Documents and Settings\Andres Montano\My Documents\docs-misc\java\DictionarySearch\src\Dictionary\webroot" workDir="C:\Program Files\Apache Software Foundation\Tomcat 5.5\work" debug="0" reloadable="true" crossContext="true">
|
||||
|
||||
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"
|
||||
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
|
||||
url="jdbc:mysql://localhost:3306/Lex?useUnicode=true&characterEncoding=UTF-8"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
username="javauser"
|
||||
password="javadude"
|
||||
maxWait="5000"
|
||||
maxIdle="7"
|
||||
maxActive="15"
|
||||
removeAbandoned="true"/>
|
||||
|
||||
<Resource name="jdbc/thdl-users-datasource" scope="Shareable" type="javax.sql.DataSource"
|
||||
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
|
||||
url="jdbc:mysql://localhost:3306/ThdlUsers"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
username="javauser"
|
||||
password="javadude"
|
||||
useUnicode="true"
|
||||
characterEncoding="utf-8"
|
||||
maxWait="5000"
|
||||
maxIdle="7"
|
||||
maxActive="15"
|
||||
removeAbandoned="true"/>
|
||||
|
||||
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access" prefix="lex_access_log." suffix=".txt" pattern="combined" resolveHosts="true"/>
|
||||
</Context>
|
BIN
webroot/WEB-INF/lib/DLESETools.jar
Normal file
BIN
webroot/WEB-INF/lib/Jskad.jar
Normal file
BIN
webroot/WEB-INF/lib/ThdlUser.jar
Normal file
BIN
webroot/WEB-INF/lib/cglib-full-2.0.2.jar
Normal file
BIN
webroot/WEB-INF/lib/commons-beanutils.jar
Normal file
BIN
webroot/WEB-INF/lib/commons-collections-2.1.1.jar
Normal file
BIN
webroot/WEB-INF/lib/commons-lang-2.0.jar
Normal file
BIN
webroot/WEB-INF/lib/commons-logging-1.0.4.jar
Normal file
BIN
webroot/WEB-INF/lib/dom4j-1.4.jar
Normal file
BIN
webroot/WEB-INF/lib/ehcache-0.9.jar
Normal file
BIN
webroot/WEB-INF/lib/hibernate2.jar
Normal file
BIN
webroot/WEB-INF/lib/jdbc2_0-stdext.jar
Normal file
BIN
webroot/WEB-INF/lib/jstl.jar
Normal file
BIN
webroot/WEB-INF/lib/jta.jar
Normal file
BIN
webroot/WEB-INF/lib/log4j-1.2.8.jar
Normal file
BIN
webroot/WEB-INF/lib/lucene-1.3-rc1.jar
Normal file
BIN
webroot/WEB-INF/lib/odmg-3.0.jar
Normal file
BIN
webroot/WEB-INF/lib/standard.jar
Normal file
BIN
webroot/WEB-INF/lib/taglibs-input.jar
Normal file
BIN
webroot/WEB-INF/lib/taglibs-request.jar
Normal file
BIN
webroot/WEB-INF/lib/taglibs-response.jar
Normal file
BIN
webroot/WEB-INF/lib/taglibs-session.jar
Normal file
BIN
webroot/WEB-INF/lib/taglibs-string.jar
Normal file
393
webroot/WEB-INF/tld/c-rt.tld
Normal file
|
@ -0,0 +1,393 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<!DOCTYPE taglib
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
|
||||
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
|
||||
<taglib>
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<jsp-version>1.2</jsp-version>
|
||||
<short-name>c_rt</short-name>
|
||||
<uri>http://java.sun.com/jstl/core_rt</uri>
|
||||
<display-name>JSTL core RT</display-name>
|
||||
<description>JSTL 1.0 core library</description>
|
||||
|
||||
<validator>
|
||||
<validator-class>
|
||||
org.apache.taglibs.standard.tlv.JstlCoreTLV
|
||||
</validator-class>
|
||||
<description>
|
||||
Provides core validation features for JSTL tags.
|
||||
</description>
|
||||
</validator>
|
||||
|
||||
<tag>
|
||||
<name>catch</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Catches any Throwable that occurs in its body and optionally
|
||||
exposes it.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>choose</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Simple conditional tag that establishes a context for
|
||||
mutually exclusive conditional operations, marked by
|
||||
<when> and <otherwise>
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>if</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Simple conditional tag, which evalutes its body if the
|
||||
supplied condition is true and optionally exposes a Boolean
|
||||
scripting variable representing the evaluation of this condition
|
||||
</description>
|
||||
<attribute>
|
||||
<name>test</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>boolean</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>import</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
|
||||
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Retrieves an absolute or relative URL and exposes its contents
|
||||
to either the page, a String in 'var', or a Reader in 'varReader'.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>url</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varReader</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>charEncoding</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>forEach</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
|
||||
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
The basic iteration tag, accepting many different
|
||||
collection types and supporting subsetting and other
|
||||
functionality
|
||||
</description>
|
||||
<attribute>
|
||||
<name>items</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>java.lang.Object</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>begin</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>step</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varStatus</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>forTokens</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Iterates over tokens, separated by the supplied delimeters
|
||||
</description>
|
||||
<attribute>
|
||||
<name>items</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>java.lang.String</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delims</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>java.lang.String</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>begin</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>step</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>int</type>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varStatus</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>out</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Like <%= ... >, but for expressions.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>escapeXml</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
|
||||
<tag>
|
||||
<name>otherwise</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Subtag of <choose> that follows <when> tags
|
||||
and runs only if all of the prior conditions evaluated to
|
||||
'false'
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>param</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Adds a parameter to a containing 'import' tag's URL.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>redirect</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Redirects to a new URL.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>url</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>remove</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
|
||||
<body-content>empty</body-content>
|
||||
<description>
|
||||
Removes a scoped variable (from a particular scope, if specified).
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>set</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Sets the result of an expression evaluation in a 'scope'
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>target</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>url</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Creates a URL with optional query parameters.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>when</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Subtag of <choose> that includes its body if its
|
||||
condition evalutes to 'true'
|
||||
</description>
|
||||
<attribute>
|
||||
<name>test</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<type>boolean</type>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
</taglib>
|
416
webroot/WEB-INF/tld/c.tld
Normal file
|
@ -0,0 +1,416 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<!DOCTYPE taglib
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
|
||||
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
|
||||
<taglib>
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<jsp-version>1.2</jsp-version>
|
||||
<short-name>c</short-name>
|
||||
<uri>http://java.sun.com/jstl/core</uri>
|
||||
<display-name>JSTL core</display-name>
|
||||
<description>JSTL 1.0 core library</description>
|
||||
|
||||
<validator>
|
||||
<validator-class>
|
||||
org.apache.taglibs.standard.tlv.JstlCoreTLV
|
||||
</validator-class>
|
||||
<init-param>
|
||||
<param-name>expressionAttributes</param-name>
|
||||
<param-value>
|
||||
out:value
|
||||
out:default
|
||||
out:escapeXml
|
||||
if:test
|
||||
import:url
|
||||
import:context
|
||||
import:charEncoding
|
||||
forEach:items
|
||||
forEach:begin
|
||||
forEach:end
|
||||
forEach:step
|
||||
forTokens:items
|
||||
forTokens:begin
|
||||
forTokens:end
|
||||
forTokens:step
|
||||
param:encode
|
||||
param:name
|
||||
param:value
|
||||
redirect:context
|
||||
redirect:url
|
||||
set:property
|
||||
set:target
|
||||
set:value
|
||||
url:context
|
||||
url:value
|
||||
when:test
|
||||
</param-value>
|
||||
<description>
|
||||
Whitespace-separated list of colon-separated token pairs
|
||||
describing tag:attribute combinations that accept expressions.
|
||||
The validator uses this information to determine which
|
||||
attributes need their syntax validated.
|
||||
</description>
|
||||
</init-param>
|
||||
</validator>
|
||||
|
||||
<tag>
|
||||
<name>catch</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Catches any Throwable that occurs in its body and optionally
|
||||
exposes it.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>choose</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Simple conditional tag that establishes a context for
|
||||
mutually exclusive conditional operations, marked by
|
||||
<when> and <otherwise>
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>out</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Like <%= ... >, but for expressions.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>escapeXml</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>if</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Simple conditional tag, which evalutes its body if the
|
||||
supplied condition is true and optionally exposes a Boolean
|
||||
scripting variable representing the evaluation of this condition
|
||||
</description>
|
||||
<attribute>
|
||||
<name>test</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>import</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class>
|
||||
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Retrieves an absolute or relative URL and exposes its contents
|
||||
to either the page, a String in 'var', or a Reader in 'varReader'.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>url</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varReader</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>charEncoding</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>forEach</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class>
|
||||
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
The basic iteration tag, accepting many different
|
||||
collection types and supporting subsetting and other
|
||||
functionality
|
||||
</description>
|
||||
<attribute>
|
||||
<name>items</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>begin</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>step</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varStatus</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>forTokens</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Iterates over tokens, separated by the supplied delimeters
|
||||
</description>
|
||||
<attribute>
|
||||
<name>items</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delims</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>begin</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>step</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>varStatus</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>otherwise</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Subtag of <choose> that follows <when> tags
|
||||
and runs only if all of the prior conditions evaluated to
|
||||
'false'
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>param</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Adds a parameter to a containing 'import' tag's URL.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>redirect</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Redirects to a new URL.
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>url</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>remove</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
|
||||
<body-content>empty</body-content>
|
||||
<description>
|
||||
Removes a scoped variable (from a particular scope, if specified).
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>set</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Sets the result of an expression evaluation in a 'scope'
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>target</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>url</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Prints or exposes a URL with optional query parameters
|
||||
(via the c:param tag).
|
||||
</description>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>context</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
<name>when</name>
|
||||
<tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Subtag of <choose> that includes its body if its
|
||||
condition evalutes to 'true'
|
||||
</description>
|
||||
<attribute>
|
||||
<name>test</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
</taglib>
|
346
webroot/WEB-INF/tld/taglibs-input.tld
Normal file
|
@ -0,0 +1,346 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>input</shortname>
|
||||
<uri>http://jakarta.apache.org/taglibs/input-1.0</uri>
|
||||
<info>The "input" tag extension library lets you present HTML <form>
|
||||
elements that are tied to the ServletRequest that caused the current
|
||||
JSP page to run, or to a JavaBean. That is, using this library, you can easily
|
||||
prepopulate form elements with prior values that the user has chosen
|
||||
-- or with default values for the first time a user hits a web page.
|
||||
This is useful when you need to present the same page to the user
|
||||
several times (e.g., for server-side validation).You can also automatically build up <select> boxes, making it easier
|
||||
to build data-driven forms. And even if you don't present the same
|
||||
page multiple times, you may want form elements that have default
|
||||
values; this library lets you do that without writing excessive logic.What is the "Input" tag library? Read more.</info>
|
||||
<tag>
|
||||
<name>form</name>
|
||||
<tagclass>org.apache.taglibs.input.Form</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>method</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>action</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>encType</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>text</name>
|
||||
<tagclass>org.apache.taglibs.input.Text</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>password</name>
|
||||
<tagclass>org.apache.taglibs.input.Password</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>textarea</name>
|
||||
<tagclass>org.apache.taglibs.input.TextArea</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>hidden</name>
|
||||
<tagclass>org.apache.taglibs.input.Hidden</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>select</name>
|
||||
<tagclass>org.apache.taglibs.input.Select</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>defaults</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>multiple</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>size</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>options</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>optionLabels</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>optionValues</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>option</name>
|
||||
<tagclass>org.apache.taglibs.input.Option</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>radio</name>
|
||||
<tagclass>org.apache.taglibs.input.Radio</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>checkbox</name>
|
||||
<tagclass>org.apache.taglibs.input.Checkbox</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>defaults</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributes</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>attributesText</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
447
webroot/WEB-INF/tld/taglibs-request.tld
Normal file
|
@ -0,0 +1,447 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0.1</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>request</shortname>
|
||||
<uri>http://jakarta.apache.org/taglibs/request-1.0</uri>
|
||||
<info>The REQUEST custom tag library contains tags which can be used to
|
||||
access all the information about the HTTP request for a JSP page.Tags are provided to access information in the HTTP request for
|
||||
HTTP input parameters from a POST or GET, HTTP Headers, Cookies,
|
||||
request attributes, and session information related to this request.</info>
|
||||
<tag>
|
||||
<name>log</name>
|
||||
<tagclass>org.apache.taglibs.request.LogTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>request</name>
|
||||
<tagclass>org.apache.taglibs.request.RequestTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.RequestTEI</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isSecure</name>
|
||||
<tagclass>org.apache.taglibs.request.IsSecureTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isSessionFromCookie</name>
|
||||
<tagclass>org.apache.taglibs.request.IsSessionFromCookieTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isSessionFromUrl</name>
|
||||
<tagclass>org.apache.taglibs.request.IsSessionFromURLTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isSessionValid</name>
|
||||
<tagclass>org.apache.taglibs.request.IsSessionValidTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isUserInRole</name>
|
||||
<tagclass>org.apache.taglibs.request.IsUserInRoleTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>role</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>attribute</name>
|
||||
<tagclass>org.apache.taglibs.request.AttributeTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>attributes</name>
|
||||
<tagclass>org.apache.taglibs.request.AttributesTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.AttributesTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equalsAttribute</name>
|
||||
<tagclass>org.apache.taglibs.request.EqualsAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>match</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignoreCase</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsAttribute</name>
|
||||
<tagclass>org.apache.taglibs.request.ExistsAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>removeAttribute</name>
|
||||
<tagclass>org.apache.taglibs.request.RemoveAttributeTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setAttribute</name>
|
||||
<tagclass>org.apache.taglibs.request.SetAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>cookie</name>
|
||||
<tagclass>org.apache.taglibs.request.CookieTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>cookies</name>
|
||||
<tagclass>org.apache.taglibs.request.CookiesTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.CookiesTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equalsCookie</name>
|
||||
<tagclass>org.apache.taglibs.request.EqualsCookieTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>match</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignoreCase</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsCookie</name>
|
||||
<tagclass>org.apache.taglibs.request.ExistsCookieTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>header</name>
|
||||
<tagclass>org.apache.taglibs.request.HeaderTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>headers</name>
|
||||
<tagclass>org.apache.taglibs.request.HeadersTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.HeadersTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equalsHeader</name>
|
||||
<tagclass>org.apache.taglibs.request.EqualsHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>match</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignoreCase</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsHeader</name>
|
||||
<tagclass>org.apache.taglibs.request.ExistsHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>headerValues</name>
|
||||
<tagclass>org.apache.taglibs.request.HeaderValuesTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.HeaderValuesTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>parameter</name>
|
||||
<tagclass>org.apache.taglibs.request.ParameterTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>parameters</name>
|
||||
<tagclass>org.apache.taglibs.request.ParametersTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.ParametersTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equalsParameter</name>
|
||||
<tagclass>org.apache.taglibs.request.EqualsParameterTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>match</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignoreCase</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsParameter</name>
|
||||
<tagclass>org.apache.taglibs.request.ExistsParameterTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>parameterValues</name>
|
||||
<tagclass>org.apache.taglibs.request.ParameterValuesTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.ParameterValuesTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>queryString</name>
|
||||
<tagclass>org.apache.taglibs.request.QueryStringTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>queryStrings</name>
|
||||
<tagclass>org.apache.taglibs.request.QueryStringsTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.request.QueryStringsTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsQueryString</name>
|
||||
<tagclass>org.apache.taglibs.request.ExistsQueryStringTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
248
webroot/WEB-INF/tld/taglibs-response.tld
Normal file
|
@ -0,0 +1,248 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0.1</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>response</shortname>
|
||||
<uri>http://jakarta.apache.org/taglibs/response-1.0</uri>
|
||||
<info>The RESPONSE custom tag library contains tags which can be used
|
||||
to set all the information for an HTTP response for a JSP page.This includes creating cookies and setting their values, setting HTTP
|
||||
headers, returning back an HTTP error, or sending an HTTP redirect.</info>
|
||||
<tag>
|
||||
<name>encodeRedirectUrl</name>
|
||||
<tagclass>org.apache.taglibs.response.EncodeRedirectURLTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>encodeUrl</name>
|
||||
<tagclass>org.apache.taglibs.response.EncodeURLTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>flushBuffer</name>
|
||||
<tagclass>org.apache.taglibs.response.FlushBufferTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isCommitted</name>
|
||||
<tagclass>org.apache.taglibs.response.IsCommittedTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>sendError</name>
|
||||
<tagclass>org.apache.taglibs.response.SendErrorTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>error</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>reset</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>sendRedirect</name>
|
||||
<tagclass>org.apache.taglibs.response.SendRedirectTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setContentType</name>
|
||||
<tagclass>org.apache.taglibs.response.SetContentTypeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setStatus</name>
|
||||
<tagclass>org.apache.taglibs.response.SetStatusTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>status</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>skipPage</name>
|
||||
<tagclass>org.apache.taglibs.response.SkipPageTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>addCookie</name>
|
||||
<tagclass>org.apache.taglibs.response.AddCookieTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>comment</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>domain</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>maxAge</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>path</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>secure</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>version</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>comment</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieCommentTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>domain</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieDomainTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>maxAge</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieMaxAgeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>path</name>
|
||||
<tagclass>org.apache.taglibs.response.CookiePathTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>secure</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieSecureTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>value</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieValueTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>version</name>
|
||||
<tagclass>org.apache.taglibs.response.CookieVersionTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>addHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.AddHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>addDateHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.AddDateHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>addIntHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.AddIntHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>containsHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.ContainsHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.SetHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setDateHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.SetDateHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setIntHeader</name>
|
||||
<tagclass>org.apache.taglibs.response.SetIntHeaderTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
159
webroot/WEB-INF/tld/taglibs-session.tld
Normal file
|
@ -0,0 +1,159 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0.1</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>session</shortname>
|
||||
<uri>http://jakarta.apache.org/taglibs/session-1.0</uri>
|
||||
<info>The SESSION JSP tag library provides tags for reading or modifying client
|
||||
HttpSession information.
|
||||
A servlet container uses an HttpSession to store information about a
|
||||
clients session on the server. By default a JSP page will create a session for
|
||||
a user. The user is tied to the session using either a Cookie or by using URL
|
||||
rewriting. This is how you can tie information to a user between multiple HTTP
|
||||
requests to your server.
|
||||
Session Attributes are what makes it possible to store information about a
|
||||
clients session between multiple HTTP requests. A session attribute consists of
|
||||
a name and value. To save information about a users session on your server use
|
||||
the setAttribute tag.
|
||||
The session attributes you save only exist while the sessions exists.
|
||||
Servlet containers will expire a users session and remove it after the user has
|
||||
been inactive for a period of time. Many servlet containers default to 30
|
||||
minutes. You can change this by using the maxInactiveInterval tag.
|
||||
A typical example of this is a shopping cart application where you use the
|
||||
session to track what items the user wants to purchase. Each time a user
|
||||
selects an item to purchase you set a session attribute which contains
|
||||
information about the item. Then when the user later checks out, you can
|
||||
determine what items they want to purchase by looking at the session
|
||||
attributes.
|
||||
</info>
|
||||
<tag>
|
||||
<name>session</name>
|
||||
<tagclass>org.apache.taglibs.session.SessionTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.session.SessionTEI</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>isNew</name>
|
||||
<tagclass>org.apache.taglibs.session.IsNewTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>invalidate</name>
|
||||
<tagclass>org.apache.taglibs.session.InvalidateTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>maxInactiveInterval</name>
|
||||
<tagclass>org.apache.taglibs.session.MaxInactiveIntervalTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>attribute</name>
|
||||
<tagclass>org.apache.taglibs.session.AttributeTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>attributes</name>
|
||||
<tagclass>org.apache.taglibs.session.AttributesTag</tagclass>
|
||||
<teiclass>org.apache.taglibs.session.AttributesTEI</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equalsAttribute</name>
|
||||
<tagclass>org.apache.taglibs.session.EqualsAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>match</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignoreCase</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>existsAttribute</name>
|
||||
<tagclass>org.apache.taglibs.session.ExistsAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>no</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>removeAttribute</name>
|
||||
<tagclass>org.apache.taglibs.session.RemoveAttributeTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>setAttribute</name>
|
||||
<tagclass>org.apache.taglibs.session.SetAttributeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>yes</required>
|
||||
<rtexprvalue>no</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
748
webroot/WEB-INF/tld/taglibs-string.tld
Normal file
|
@ -0,0 +1,748 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.1.0</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>string</shortname>
|
||||
<uri>http://jakarta.apache.org/taglibs/string-1.1</uri>
|
||||
<info>
|
||||
The String taglibrary provides a host of tags for manipulating
|
||||
java.lang.Strings. The style is that the String to act upon is the
|
||||
body of the tag, and attributes are used as parameters for the
|
||||
manipulation.
|
||||
</info>
|
||||
<tag>
|
||||
<name>length</name>
|
||||
<tagclass>org.apache.taglibs.string.LengthTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>capitalize</name>
|
||||
<tagclass>org.apache.taglibs.string.CapitalizeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>uncapitalize</name>
|
||||
<tagclass>org.apache.taglibs.string.UncapitalizeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>upperCase</name>
|
||||
<tagclass>org.apache.taglibs.string.UpperCaseTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>lowerCase</name>
|
||||
<tagclass>org.apache.taglibs.string.LowerCaseTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>trim</name>
|
||||
<tagclass>org.apache.taglibs.string.TrimTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>chop</name>
|
||||
<tagclass>org.apache.taglibs.string.ChopTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>chopNewline</name>
|
||||
<tagclass>org.apache.taglibs.string.ChopNewlineTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>escape</name>
|
||||
<tagclass>org.apache.taglibs.string.EscapeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>reverse</name>
|
||||
<tagclass>org.apache.taglibs.string.ReverseTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>swapCase</name>
|
||||
<tagclass>org.apache.taglibs.string.SwapCaseTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>soundex</name>
|
||||
<tagclass>org.apache.taglibs.string.SoundexTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>metaphone</name>
|
||||
<tagclass>org.apache.taglibs.string.MetaphoneTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>quoteRegexp</name>
|
||||
<tagclass>org.apache.taglibs.string.QuoteRegexpTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>capitalizeAllWords</name>
|
||||
<tagclass>org.apache.taglibs.string.CapitalizeAllWordsTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>removeXml</name>
|
||||
<tagclass>org.apache.taglibs.string.RemoveXmlTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>encodeUrl</name>
|
||||
<tagclass>org.apache.taglibs.string.EncodeUrlTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>decodeUrl</name>
|
||||
<tagclass>org.apache.taglibs.string.DecodeUrlTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>count</name>
|
||||
<tagclass>org.apache.taglibs.string.CountTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>set</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>delete</name>
|
||||
<tagclass>org.apache.taglibs.string.DeleteTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>set</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>squeeze</name>
|
||||
<tagclass>org.apache.taglibs.string.SqueezeTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>set</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>center</name>
|
||||
<tagclass>org.apache.taglibs.string.CenterTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>width</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>rightPad</name>
|
||||
<tagclass>org.apache.taglibs.string.RightPadTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>width</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>leftPad</name>
|
||||
<tagclass>org.apache.taglibs.string.LeftPadTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>width</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>chomp</name>
|
||||
<tagclass>org.apache.taglibs.string.ChompTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>getChomp</name>
|
||||
<tagclass>org.apache.taglibs.string.GetChompTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>prechomp</name>
|
||||
<tagclass>org.apache.taglibs.string.PrechompTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>getPrechomp</name>
|
||||
<tagclass>org.apache.taglibs.string.GetPrechompTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>strip</name>
|
||||
<tagclass>org.apache.taglibs.string.StripTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>stripEnd</name>
|
||||
<tagclass>org.apache.taglibs.string.StripEndTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>stripStart</name>
|
||||
<tagclass>org.apache.taglibs.string.StripStartTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>reverseDelimitedString</name>
|
||||
<tagclass>org.apache.taglibs.string.ReverseDelimitedStringTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>overlay</name>
|
||||
<tagclass>org.apache.taglibs.string.OverlayTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>with</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>start</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>substring</name>
|
||||
<tagclass>org.apache.taglibs.string.SubstringTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>start</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>repeat</name>
|
||||
<tagclass>org.apache.taglibs.string.RepeatTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>wordWrap</name>
|
||||
<tagclass>org.apache.taglibs.string.WordWrapTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>width</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>split</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>delimiterInside</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>nestedString</name>
|
||||
<tagclass>org.apache.taglibs.string.NestedStringTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>open</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>close</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>countMatches</name>
|
||||
<tagclass>org.apache.taglibs.string.CountMatchesTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>substring</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>default</name>
|
||||
<tagclass>org.apache.taglibs.string.DefaultTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>default</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>replace</name>
|
||||
<tagclass>org.apache.taglibs.string.ReplaceTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>replace</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>with</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>newlineToken</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>carriageToken</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>randomString</name>
|
||||
<tagclass>org.apache.taglibs.string.RandomStringTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>start</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>end</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>type</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>left</name>
|
||||
<tagclass>org.apache.taglibs.string.LeftTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>right</name>
|
||||
<tagclass>org.apache.taglibs.string.RightTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>mid</name>
|
||||
<tagclass>org.apache.taglibs.string.MidTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>start</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>count</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>truncateNicely</name>
|
||||
<tagclass>org.apache.taglibs.string.TruncateNicelyTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>lower</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>upper</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>appendToEnd</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>join</name>
|
||||
<tagclass>org.apache.taglibs.string.JoinTag</tagclass>
|
||||
<bodycontent>EMPTY</bodycontent>
|
||||
<attribute>
|
||||
<name>items</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>separator</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>split</name>
|
||||
<tagclass>org.apache.taglibs.string.SplitTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>separator</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>var</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
221
webroot/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,221 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||
|
||||
<web-app>
|
||||
|
||||
<display-name>Lex</display-name>
|
||||
|
||||
<!--FILTERS-->
|
||||
<filter>
|
||||
<filter-name>authentication</filter-name>
|
||||
<filter-class>org.thdl.lex.AuthenticationFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>loginPage</param-name>
|
||||
<param-value>/login.jsp</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>guest</filter-name>
|
||||
<filter-class>org.thdl.lex.GuestFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>charEnc</filter-name>
|
||||
<filter-class>org.thdl.lex.CharEncFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>component</filter-name>
|
||||
<filter-class>org.thdl.lex.LexComponentFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>charEnc</filter-name>
|
||||
<url-pattern>/action</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>authentication</filter-name>
|
||||
<url-pattern>/action</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!--filter-mapping>
|
||||
<filter-name>authentication</filter-name>
|
||||
<url-pattern>*.jsp</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>authentication</filter-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</filter-mapping-->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>guest</filter-name>
|
||||
<url-pattern>/public</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>component</filter-name>
|
||||
<url-pattern>/action</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>component</filter-name>
|
||||
<url-pattern>/public</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- <listener>
|
||||
<listener-class>org.thdl.lex.LoginSessionListener</listener-class>
|
||||
</listener> -->
|
||||
|
||||
<!--SERVLETS-->
|
||||
<servlet>
|
||||
<servlet-name>action</servlet-name>
|
||||
<servlet-class>org.thdl.lex.LexActionServlet</servlet-class>
|
||||
|
||||
<!--These init parameter provide configuration info for the Global object that stores recently modified terms.-->
|
||||
<init-param>
|
||||
<param-name>globalDataRefreshDelay</param-name>
|
||||
<param-value>6</param-value><!--delay in seconds-->
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>recentItems</param-name><!--number of recently modified terms -->
|
||||
<param-value>6</param-value>
|
||||
</init-param>
|
||||
|
||||
<!--These init parameter provide configuration info for the OAI Metadata Harvesting of Bibliographical entries-->
|
||||
<init-param>
|
||||
<param-name>oaiServer</param-name>
|
||||
<param-value>http://datastore.lib.virginia.edu/tibet/spt/SPT--OAI.php</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>oaiMetadataPrefix</param-name>
|
||||
<param-value>oai_dc</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>oaiHome</param-name>
|
||||
<param-value>/Users/travis/webapps/oai-sources</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>oaiLocalCopy</param-name>
|
||||
<param-value>Thdl_Oai_Bibliography_Sources.xml</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>oaiRefreshDelay</param-name><!--Hours between total refresh of sources-->
|
||||
<param-value>24</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>login</servlet-name>
|
||||
<servlet-class>org.thdl.lex.LoginServlet</servlet-class>
|
||||
|
||||
<init-param>
|
||||
<param-name>loginPage</param-name>
|
||||
<param-value>/login.jsp</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>welcomePage</param-name>
|
||||
<param-value>/jsp/menu.jsp</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>logout</servlet-name>
|
||||
<servlet-class>org.thdl.lex.LogoutServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>goodbyePage</param-name>
|
||||
<param-value>http://iris.lib.virginia.edu/tibet/reference/dictionary.html</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>test</servlet-name>
|
||||
<servlet-class>org.thdl.lex.HibernateTestServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!--SERVLET MAPPPINGS-->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>action</servlet-name>
|
||||
<url-pattern>/action</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>action</servlet-name>
|
||||
<url-pattern>/public</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>login</servlet-name>
|
||||
<url-pattern>/login</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>logout</servlet-name>
|
||||
<url-pattern>/logout</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>test</servlet-name>
|
||||
<url-pattern>/test</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!--TAGLIBS-->
|
||||
|
||||
<!--RELEASE TAGLIBS
|
||||
<taglib>
|
||||
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
|
||||
<taglib-location>/WEB-INF/lib/c.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/request-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/lib/request.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/session-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/lib/session.tld</taglib-location>
|
||||
</taglib>-->
|
||||
|
||||
<!--NIGHTLY TAGLIBS-->
|
||||
<taglib>
|
||||
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<!--taglib>
|
||||
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
|
||||
</taglib-->
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/request-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/taglibs-request.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/response-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/taglibs-response.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/session-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/taglibs-session.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/input-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/taglibs-input.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>http://jakarta.apache.org/taglibs/string-1.0</taglib-uri>
|
||||
<taglib-location>/WEB-INF/tld/taglibs-string.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
</web-app>
|
||||
|
165
webroot/css/lex-advanced.css
Normal file
|
@ -0,0 +1,165 @@
|
|||
/* ID Selectors */
|
||||
|
||||
#label
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
#message
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
#results
|
||||
{
|
||||
}
|
||||
|
||||
#toc
|
||||
{
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#helper
|
||||
{
|
||||
background-color: #99ccff;
|
||||
border: solid 1px gray;
|
||||
padding: 2px 0 2px 2px;
|
||||
}
|
||||
#recentTerms h3
|
||||
{
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
#recentTerms p
|
||||
{
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
#termChildren, #defChildren, #subdefChildren
|
||||
{
|
||||
}
|
||||
#columnLeft select, #columnLeft input, #columnRight select, #columnRight input
|
||||
{
|
||||
width: 120px !important;
|
||||
}
|
||||
#columnCenter p
|
||||
{
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
#newCompForm, #preferencesForm
|
||||
{
|
||||
background-color: #99ccff;
|
||||
border: black solid 1px;
|
||||
margin: 8px 8px 8px 8px !important;
|
||||
}
|
||||
|
||||
#newCompForm input, select, textarea
|
||||
{
|
||||
margin: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
/* Class Selectors.*/
|
||||
ul.navLinks
|
||||
{
|
||||
list-style-type: none;
|
||||
margin: 0 0 0 6px !important;
|
||||
padding: 0 0 0 0;
|
||||
}
|
||||
ul.navLinks li
|
||||
{
|
||||
display: inline;
|
||||
margin: 0 0 0 0 !important;
|
||||
padding: 0 0 0 0;
|
||||
}
|
||||
|
||||
.highlightBox ol
|
||||
{
|
||||
margin: 0 0 0 20px;
|
||||
}
|
||||
|
||||
.label
|
||||
{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.compEditOptions
|
||||
{
|
||||
padding: 3px 3px 0px 3px;
|
||||
margin: 0;
|
||||
float: right;
|
||||
display: block;
|
||||
background-color: #99ccff;
|
||||
border-right: 1px solid gray;
|
||||
border-bottom: 1px solid gray;
|
||||
border-left: 1px solid gray;
|
||||
}
|
||||
|
||||
.data
|
||||
{
|
||||
border-top: 1px solid gray;
|
||||
padding-top: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
a.meta img, .data img
|
||||
{
|
||||
margin-right: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.metadata
|
||||
{
|
||||
display: none;
|
||||
margin-left: 1.5em;
|
||||
margin-top: .5em;
|
||||
}
|
||||
|
||||
.data input
|
||||
{
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/* CSS Rollovers */
|
||||
p.data a:hover
|
||||
{
|
||||
/*
|
||||
Don't Remove bgcolor and color or rollover will not work on IE Windows
|
||||
These CSS Rollovers do not work on IE Mac. but they do work on Mozilla Mac
|
||||
*/
|
||||
text-decoration: none;
|
||||
background-color: white;
|
||||
color: #003366;
|
||||
}
|
||||
|
||||
p.data a:link span.metadata
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
p.data a:visited span.metadata
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
p.data a:hover span.metadata
|
||||
{
|
||||
text-decoration: none !important;
|
||||
position: absolute;
|
||||
margin: 5px 0px 0px 20px;
|
||||
background-color: beige;
|
||||
max-width: 300px;
|
||||
padding: 2px 10px 2px 10px;
|
||||
border: 1px solid #C0C0C0;
|
||||
text-align:left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* p.data a:hover span.translation span.metadata, p.data a:hover span.analysis span.metadata
|
||||
{
|
||||
width: 300px;
|
||||
} */
|
||||
|
||||
|
||||
/* END OF CSS*/
|
136
webroot/css/lex.css
Normal file
|
@ -0,0 +1,136 @@
|
|||
/* IMPORTS */
|
||||
|
||||
@import url( "thdl-styles.css" );
|
||||
@import url( "lex-advanced.css" );
|
||||
|
||||
|
||||
#main input, #main textarea, #main p, #main li
|
||||
{ /*--------- '*' = everything -------------*/
|
||||
font-family: 'Times Ext Roman', 'Arial Unicode MS', 'Lucida Grande', sans-serif !important;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-size: 1.5em;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
ol
|
||||
{
|
||||
list-style-type: none;
|
||||
}
|
||||
ol ol
|
||||
{
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
ol ol ol
|
||||
{
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
ol ol ol ol
|
||||
{
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#results ol
|
||||
{
|
||||
list-style-type: decimal;
|
||||
}
|
||||
ol.notes
|
||||
{
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
|
||||
ul
|
||||
{
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
ol, ul, li
|
||||
{
|
||||
clear: right;
|
||||
margin-right: 0px !important;
|
||||
padding-right: 0 !important;
|
||||
margin-left: 2px !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
#results ol
|
||||
{
|
||||
margin-left: 30px !important;
|
||||
}
|
||||
li
|
||||
{
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
/* ol
|
||||
{
|
||||
border: solid 2px black;
|
||||
}
|
||||
|
||||
li ol
|
||||
{
|
||||
border: solid 2px yellow;
|
||||
}
|
||||
li
|
||||
{
|
||||
border: solid 2px red;
|
||||
} */
|
||||
li li
|
||||
{
|
||||
margin-left: 25px !important;
|
||||
/* border: solid 2px blue; */
|
||||
}
|
||||
|
||||
|
||||
div.tmw-block, h1.tmw-block, p.tmw-block
|
||||
{
|
||||
margin-top: 1ex !important;
|
||||
text-align: left !important;
|
||||
/* border: solid 2px red; */
|
||||
}
|
||||
|
||||
.tmw-block span
|
||||
{
|
||||
/* vertical-align: middle; */
|
||||
}
|
||||
|
||||
span.tmw-roman
|
||||
{
|
||||
|
||||
/* margin-top: 1ex;
|
||||
padding-top: 1ex; */
|
||||
}
|
||||
span.tmw {font: 24pt TibetanMachineWeb !important; text-transform: none; }
|
||||
span.tmw1 {font: 24pt TibetanMachineWeb1 !important; text-transform: none; }
|
||||
span.tmw2 {font: 24pt TibetanMachineWeb2 !important; text-transform: none; }
|
||||
span.tmw3 {font: 24pt TibetanMachineWeb3 !important; text-transform: none; }
|
||||
span.tmw4 {font: 24pt TibetanMachineWeb4 !important; text-transform: none; }
|
||||
span.tmw5 {font: 24pt TibetanMachineWeb5 !important; text-transform: none; }
|
||||
span.tmw6 {font: 24pt TibetanMachineWeb6 !important; text-transform: none; }
|
||||
span.tmw7 {font: 24pt TibetanMachineWeb7 !important; text-transform: none; }
|
||||
span.tmw8 {font: 24pt TibetanMachineWeb8 !important; text-transform: none; }
|
||||
span.tmw9 {font: 24pt TibetanMachineWeb9 !important; text-transform: none; }
|
||||
|
||||
h1 span.tmw {font-size: 32pt !important; }
|
||||
h1 span.tmw1 {font-size: 32pt !important; }
|
||||
h1 span.tmw2 {font-size: 32pt !important; }
|
||||
h1 span.tmw3 {font-size: 32pt !important; }
|
||||
h1 span.tmw4 {font-size: 32pt !important; }
|
||||
h1 span.tmw5 {font-size: 32pt !important; }
|
||||
h1 span.tmw6 {font-size: 32pt !important; }
|
||||
h1 span.tmw7 {font-size: 32pt !important; }
|
||||
h1 span.tmw8 {font-size: 32pt !important; }
|
||||
h1 span.tmw9 {font-size: 32pt !important; }
|
||||
|
||||
/* The following child selectors hide this css from IE 6 and lower which can't re-position without screwing up the drawing of the fonts*/
|
||||
.tmw-block>span.tmw-roman, a>span.tmw-roman
|
||||
{
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
a.tmw-link:hover
|
||||
{
|
||||
background-color: inherit;
|
||||
}
|
||||
|
385
webroot/css/thdl-advanced.css
Normal file
|
@ -0,0 +1,385 @@
|
|||
/*--------
|
||||
ID Selectors --primarily used for page layout
|
||||
----------*/
|
||||
|
||||
#banner
|
||||
{
|
||||
margin: 0px 0px 0px 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
height : 55px;
|
||||
background-color: #E5E5E5;
|
||||
}
|
||||
|
||||
#logo
|
||||
{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 0;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
margin-left : 5px;
|
||||
width: 50px;
|
||||
margin-right: 5%;
|
||||
z-index: 11;
|
||||
}
|
||||
|
||||
#banner h1 {
|
||||
margin-right: 25%;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 65px;
|
||||
color: #003366;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#menubar {
|
||||
position: absolute;
|
||||
top: 33px;
|
||||
left: 65px;
|
||||
height: 21px;
|
||||
}
|
||||
|
||||
body>#menubar {
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
#MenuPos {
|
||||
height: 22px;
|
||||
font-size: .9em;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#sub_banner
|
||||
{
|
||||
top: 50px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
height : 25px;
|
||||
background-color: #CCCCCC;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#breadcrumbs {
|
||||
position:absolute;
|
||||
left: 10px;
|
||||
top: 60px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin-right: 13px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#search form {
|
||||
font-size: 9px;
|
||||
margin: 0;
|
||||
display: inline;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#search form p
|
||||
{
|
||||
margin: 0;
|
||||
display: inline;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* #sa, #q - These are Google Search form-parameter names */
|
||||
#sa
|
||||
{
|
||||
margin-top: 5px;
|
||||
padding: 0;
|
||||
height: 16px;
|
||||
width: 50px;
|
||||
background-color: #666666;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
border-top: solid 1px white;
|
||||
border-left: solid 1px white;
|
||||
border-bottom: solid 1px gray;
|
||||
border-right: solid 1px gray;
|
||||
}
|
||||
|
||||
p>#sa
|
||||
{
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
#q
|
||||
{
|
||||
padding: 0;
|
||||
height: 14px;
|
||||
width: 90px;
|
||||
font-size: 10px;
|
||||
border-top: solid 1px silver;
|
||||
border-left: solid 1px silver;
|
||||
border-bottom: solid 1px silver;
|
||||
border-right: solid 1px silver;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#main {
|
||||
/* width: 800px; */
|
||||
margin: 2px 0 10px 0;
|
||||
/*background-color : #ffffff; */
|
||||
}
|
||||
|
||||
body>#main {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
#columnLeft {
|
||||
position: absolute;
|
||||
left:10px;
|
||||
top:82px;
|
||||
width:200px;
|
||||
}
|
||||
|
||||
#columnCenter {
|
||||
font-size: 1em;
|
||||
|
||||
margin-left: 216px;
|
||||
margin-right:216px;
|
||||
}
|
||||
|
||||
#columnRight {
|
||||
position: absolute;
|
||||
right:10px;
|
||||
top:82px;
|
||||
width:200px;
|
||||
margin-right: 0;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
#columnMain {
|
||||
background: #ffffff;
|
||||
margin-left: 216px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#main p, #columnMain p{
|
||||
max-width: 700px;
|
||||
min-width: 10px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
#main p.illustratedBlurb
|
||||
{
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
#main ul, #main dl, #main ol {
|
||||
max-width: 620px;
|
||||
min-width: 10px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
#columnLeft p, #columnCenter p, #columnRight p,
|
||||
#columnLeft ul, #columnCenter ul, #columnRight ul,
|
||||
#columnLeft ol, #columnCenter ol, #columnRight ol,
|
||||
#columnLeft dl, #columnCenter dl, #columnRight dl
|
||||
{
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.low-emph, .low-emph * {
|
||||
color: gray;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.caption {
|
||||
font-size: .9em;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
color: #000033;
|
||||
}
|
||||
|
||||
.smallgray {
|
||||
font-size: .9em;
|
||||
font-weight: normal;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.smalllink {
|
||||
font-size: .9em;
|
||||
color: #333399;
|
||||
}
|
||||
|
||||
.bodytext {
|
||||
font-size: 1em;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.label, .bold {
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.credits {
|
||||
font-size: 1.1em;
|
||||
color: #660033;
|
||||
text-align: justify;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.highlightBox, .spotlightBox {
|
||||
width: 100%;
|
||||
margin: 5px 0 0 0;
|
||||
padding: 0 0 0 0;
|
||||
background-color: #e1e1e1;
|
||||
border: solid 1px gray;
|
||||
}
|
||||
|
||||
.spotlightBox {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.highlightBox h2, .spotlightBox h2 {
|
||||
color: white;
|
||||
background-color: #336699;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.highlightBox li
|
||||
{
|
||||
margin: 2px 0 2px 10px;
|
||||
}
|
||||
|
||||
.highlightBox ul, .highlightBox ol
|
||||
{
|
||||
margin: 0 0 0 10px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.spotlightBox h2 {
|
||||
color: #000033;
|
||||
background-color: #E5E5E5;
|
||||
}
|
||||
|
||||
.highlightBox a:hover, #breadcrumbs a:hover {
|
||||
background-color: white !important;
|
||||
}
|
||||
|
||||
ul.member {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.menu0 {
|
||||
font-size: 1em;
|
||||
margin-left: 0em;
|
||||
text-align: left;
|
||||
color: #FFFFFF;
|
||||
background-color: #000066;
|
||||
}
|
||||
|
||||
a.menu {
|
||||
font-size: 1em;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.selected {
|
||||
margin: 0px;
|
||||
font-size: 1em;
|
||||
font-weight: 900;
|
||||
color: #009933;
|
||||
background-color: #ffff99;
|
||||
padding: .1em;
|
||||
}
|
||||
|
||||
.selected:hover {
|
||||
background-color: #ffff99 !important;
|
||||
}
|
||||
|
||||
p.illustratedBlurb {
|
||||
clear: none;
|
||||
}
|
||||
|
||||
div.caption
|
||||
{
|
||||
text-align: left !important;
|
||||
margin-top: 1px !important;
|
||||
}
|
||||
|
||||
div.captionedImage {
|
||||
float: right;
|
||||
clear: right;
|
||||
margin: 4px 0 10px 10px;
|
||||
}
|
||||
|
||||
div.captionedImage img {
|
||||
float: left;
|
||||
border: solid 1px gray;
|
||||
}
|
||||
div.captionedImage div {
|
||||
clear: left;
|
||||
width: 240px;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
div.captionedImageLeft {
|
||||
float: left;
|
||||
clear: left;
|
||||
margin: 0 10px 10px 5px;
|
||||
}
|
||||
|
||||
div.captionedImageLeft img {
|
||||
float: left;
|
||||
border: solid 1px gray;
|
||||
}
|
||||
|
||||
div.captionedImageLeft div {
|
||||
clear: left;
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
img
|
||||
{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.footer
|
||||
{
|
||||
text-align: center;
|
||||
font-size: .9em;
|
||||
margin-right: 240px;
|
||||
margin-left: 240px;
|
||||
border-top: 1px dotted gray;
|
||||
}
|
||||
|
||||
#main img
|
||||
{
|
||||
border: solid 1px silver;
|
||||
}
|
||||
|
||||
img.text-illustration
|
||||
{
|
||||
margin: 8px 8px 8px 8px;
|
||||
float: right;
|
||||
}
|
108
webroot/css/thdl-styles.css
Normal file
|
@ -0,0 +1,108 @@
|
|||
/*------------------
|
||||
IMPORT STYLESHEETS
|
||||
This import hides layout rules from the following older browsers
|
||||
--------------------*/
|
||||
|
||||
@import url( "thdl-advanced.css" );
|
||||
|
||||
/*-------------
|
||||
Element Selectors
|
||||
---------------*/
|
||||
|
||||
body {
|
||||
margin:0 0 0 0;
|
||||
padding:0 0 0 0;
|
||||
color: #000033;
|
||||
background-color: #FFFFFF;
|
||||
font-size: small;
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0033CC;
|
||||
border: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: #e1e1e1;
|
||||
}
|
||||
|
||||
p, pre {
|
||||
color: #000033;
|
||||
font-size: 1em;
|
||||
margin: 5px 5px 5px 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
margin: 5px 5px 7px 5px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: Verdana, sans-serif !important;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
font-variant: normal;
|
||||
font-size: 1em;
|
||||
margin: 5px 5px 5px 3px;
|
||||
padding:0;
|
||||
text-transform: none;
|
||||
line-height: normal;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 5px;
|
||||
font-size: 1em;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
color: #000033;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.alert, .warning, .dangerous {
|
||||
font-style: normal;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.alert .label, .warning .label, .dangerous .label {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.message
|
||||
{
|
||||
color: #006666;
|
||||
}
|
||||
|
||||
.inline-help
|
||||
{
|
||||
color: #006666;
|
||||
}
|
||||
|
BIN
webroot/images/def.gif
Normal file
After Width: | Height: | Size: 126 B |
BIN
webroot/images/edit.gif
Normal file
After Width: | Height: | Size: 128 B |
BIN
webroot/images/ency.gif
Normal file
After Width: | Height: | Size: 138 B |
BIN
webroot/images/etym.gif
Normal file
After Width: | Height: | Size: 140 B |
BIN
webroot/images/gram.gif
Normal file
After Width: | Height: | Size: 141 B |
BIN
webroot/images/key.gif
Normal file
After Width: | Height: | Size: 125 B |
BIN
webroot/images/meta.gif
Normal file
After Width: | Height: | Size: 140 B |
BIN
webroot/images/metadata.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
webroot/images/note.gif
Normal file
After Width: | Height: | Size: 133 B |
BIN
webroot/images/pass.gif
Normal file
After Width: | Height: | Size: 136 B |
BIN
webroot/images/pron.gif
Normal file
After Width: | Height: | Size: 138 B |
BIN
webroot/images/reg.gif
Normal file
After Width: | Height: | Size: 115 B |
BIN
webroot/images/rel-term.gif
Normal file
After Width: | Height: | Size: 160 B |
BIN
webroot/images/remove.gif
Normal file
After Width: | Height: | Size: 137 B |
BIN
webroot/images/sent.gif
Normal file
After Width: | Height: | Size: 132 B |
BIN
webroot/images/spell.gif
Normal file
After Width: | Height: | Size: 138 B |
BIN
webroot/images/subdef.gif
Normal file
After Width: | Height: | Size: 158 B |
BIN
webroot/images/trans-eqv.gif
Normal file
After Width: | Height: | Size: 179 B |
BIN
webroot/images/trans.gif
Normal file
After Width: | Height: | Size: 138 B |
73
webroot/js/lex.js
Normal file
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
====================
|
||||
Scripts for Lex - general
|
||||
====================
|
||||
*/
|
||||
function assert( fact, details )
|
||||
{
|
||||
if ( ! fact ) alert( details );
|
||||
}
|
||||
function element(id)
|
||||
{
|
||||
if (document.getElementById != null)
|
||||
{
|
||||
return getElementById(id);
|
||||
}
|
||||
if (document.all != null)
|
||||
{
|
||||
return document.all[id]
|
||||
}
|
||||
if (document.layers != null)
|
||||
{
|
||||
return document.layers[id]
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
====================
|
||||
Scripts for menu.jsp
|
||||
====================
|
||||
*/
|
||||
function setCmd(cmd)
|
||||
{
|
||||
document.forms[1].cmd.value = cmd;
|
||||
// element( elementId ).cmd.value = cmd;
|
||||
}
|
||||
function setTerm()
|
||||
{
|
||||
document.forms[1].term.value = element( termSource ).value;
|
||||
}
|
||||
/*
|
||||
=============================
|
||||
Scripts for displayEntry.jsp
|
||||
=============================
|
||||
*/
|
||||
function MM_jumpMenu(targ,selObj,restore) //v3.0 modified by TWM
|
||||
{
|
||||
eval(targ + ".location='/lex/action?cmd=displayFull&componentLabel=term&id=" + selObj.options[selObj.selectedIndex].value + "'");
|
||||
if (restore) selObj.selectedIndex=0;
|
||||
}
|
||||
|
||||
function jumpToAnchor(sAnchor) {
|
||||
ns = (document.layers)? true:false;
|
||||
ie = (document.all)? true:false;
|
||||
if (ns)
|
||||
{
|
||||
window.scrollTo(0, document.anchors[sAnchor].y);
|
||||
}
|
||||
if (ie)
|
||||
{
|
||||
eval('document.all.' + sAnchor + '.scrollIntoView()');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
=============================
|
||||
Scripts for displayTree.jsf
|
||||
=============================
|
||||
*/
|
||||
|
||||
function smile()
|
||||
{}
|
||||
|
||||
|
42
webroot/jsp/analyticalNoteForm.jsf
Normal file
|
@ -0,0 +1,42 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--analyticalNoteForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="analyticalNote" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="analyticalNote" value="${ component.analyticalNote }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="analyticalNote" value="ERROR" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="analyticalNote" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value=' <input type="hidden" name="metaId" value="${metaId}" /> ' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value=' <input type="hidden" name="cmd" value="${newCmd}" /> ' escapeXml='false' />
|
||||
|
||||
Analysis: <br />
|
||||
<textarea name="analyticalNote" rows="8" cols="90"><c:out value='${ analyticalNote }' /></textarea>
|
||||
<br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Analysis" />
|
||||
</p>
|
||||
</form>
|
77
webroot/jsp/debug.jsf
Normal file
|
@ -0,0 +1,77 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
|
||||
<%@ taglib prefix = "c" uri = "http://java.sun.com/jstl/core" %>
|
||||
<%@ taglib prefix = "req" uri = "http://jakarta.apache.org/taglibs/request-1.0" %>
|
||||
<%@ taglib prefix = "res" uri = "http://jakarta.apache.org/taglibs/response-1.0" %>
|
||||
<%@ taglib prefix = "sess" uri = "http://jakarta.apache.org/taglibs/session-1.0" %>
|
||||
<div id = "debug">
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>DEBUG INFO</h2>
|
||||
<a href = "http://jigsaw.w3.org/css-validator/validator?uri=http://mayor.lib.virginia.edu:8080/lex/lex.css">
|
||||
Validate CSS</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>USER INFO</h2>
|
||||
User Roles: <c:out value="${ sessionScope.visit.user.roles }"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h3>
|
||||
Request Parameters:</h3>
|
||||
<req:parameters id = "loop">
|
||||
<jsp:getProperty name = "loop" property = "name"/> = '<jsp:getProperty name = "loop" property = "value"/>'<br />
|
||||
</req:parameters>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h3>
|
||||
Request Attributes:</h3>
|
||||
<req:attributes id = "loop">
|
||||
<jsp:getProperty name = "loop" property = "name"/> = '<jsp:getProperty name = "loop" property = "value"/>'<br />
|
||||
</req:attributes>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h3>
|
||||
Session Attributes:</h3>
|
||||
<sess:attributes id = "loop">
|
||||
<jsp:getProperty name = "loop" property = "name"/> = '<jsp:getProperty name = "loop" property = "value"/>'<br />
|
||||
</sess:attributes>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan = "3">
|
||||
|
||||
<h3>
|
||||
Response Headers:</h3>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<c:if test="${ ! empty results }">
|
||||
<h3>Results Array Items: </h3>
|
||||
<c:forEach var="resultsArrayItem" items="${query.results}">
|
||||
<c:out value="${resultsArrayItem}" /> <br />
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
57
webroot/jsp/definitionForm.jsf
Normal file
|
@ -0,0 +1,57 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--definitionForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="definition" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="definition" value="${ component.definition }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="definition" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<c:set var="translateMode" value="${ false }" />
|
||||
<c:if test="${ component.translationOf > 0 }">
|
||||
<c:set var="translateMode" value="${ true }" />
|
||||
<c:set var="originalDefinition"
|
||||
value="Original Definition: ${ original.definition } <br /> Translation " />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
</c:if>
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<c:if test="${ translateMode }">
|
||||
<c:out value='<input type="hidden" name="translationOf" value="${ component.translationOf }" />' escapeXml="false" />
|
||||
</c:if>
|
||||
|
||||
<input type="hidden" name="comp" value="definition" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
<c:out value="${ originalDefinition }" escapeXml='false' />
|
||||
|
||||
Definition: <br />
|
||||
|
||||
<textarea name="definition" rows="8" cols="90"><c:if test="${ param.cmd != 'getTranslationForm'}"><c:out value='${ definition }' escapeXml='false' /></c:if></textarea>
|
||||
<br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Definition" />
|
||||
</p>
|
||||
</form>
|
63
webroot/jsp/displayDefinition.jsf
Normal file
|
@ -0,0 +1,63 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--DEFINITION LOOP-->
|
||||
<c:set var="definition" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=definition&metaId=${ definition.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=definition&metaId=${ definition.metaId }" title="Edit this Definition"><img alt="Edit this Definition" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getTranslationForm&comp=definition&parentId=${definition.parentId}&translationOf=${definition.metaId}" title="Translate this Definition"><img alt="Translate this Definition" src="/lex/images/trans.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=subdefinition&parentId=${definition.metaId}" title="Add a Subdefinition"><img alt="Add a Subdefinition" src="/lex/images/subdef.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=definition&metaId=${ definition.metaId }&parentId=${definition.parentId}" title="Remove this Definition"><img alt="Remove this Definition" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Definition ${definition.precedence}:</span>-->
|
||||
<c:out value="${ definition.definition }" escapeXml="false" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
</p>
|
||||
|
||||
|
||||
<c:if test="${sessionScope.visit.helper.showTranslations }">
|
||||
<c:set value="${definition.translations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Translations</h3>
|
||||
<ul>
|
||||
<c:forEach var="translation" items="${ definition.translations }" >
|
||||
<li>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=definition&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Edit this definition"><img alt="Edit this definition" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=definition&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Remove this definition"><img alt="Remove this definition" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ translation.definition }" escapeXml="false" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ translation }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
|
26
webroot/jsp/displayEncyclopediaArticle.jsf
Normal file
|
@ -0,0 +1,26 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<c:set var="encyclopediaArticle" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=encyclopediaArticle&metaId=${ encyclopediaArticle.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=encyclopediaArticle&metaId=${ encyclopediaArticle.metaId }" title="Edit this encyclopediaArticle"><img alt="Edit this encyclopediaArticle" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=encyclopediaArticle&metaId=${ encyclopediaArticle.metaId }&parentId=${encyclopediaArticle.parentId}" title="Remove this encyclopediaArticle"><img alt="Remove this encyclopediaArticle" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
<!--<span class="label">Encyclopedia Article:</span>-->
|
||||
<c:out value="${ encyclopediaArticle.articleTitle }" escapeXml="false"/>
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
</p>
|
||||
|
||||
|
140
webroot/jsp/displayEntry.jsp
Normal file
|
@ -0,0 +1,140 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<% request.setCharacterEncoding("UTF-8"); %>
|
||||
|
||||
<!--Begin Render-->
|
||||
<jsp:include page="header.jsf" flush="false"/>
|
||||
|
||||
|
||||
<!--displayEntry.jsp-->
|
||||
<c:set var="editMode" value="${ false }" scope="request"/>
|
||||
<c:if test="${ ! sessionScope.visit.user.guest && sessionScope.visit.helper.showEditOptions }">
|
||||
<c:set var="editMode" value="${ true }" scope="request"/>
|
||||
</c:if>
|
||||
|
||||
<div id="columnRight">
|
||||
<div class="highlightBox">
|
||||
<form action="/lex/action" method="get">
|
||||
<h2>Quick Search</h2>
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="find"/>
|
||||
<input type="hidden" name="comp" value="term"/>
|
||||
Term:
|
||||
<input type="text" name="term" id="term" size="20" value=""/>
|
||||
<br/>
|
||||
Find:
|
||||
|
||||
<select name="findMode">
|
||||
<option value="exact">Exact match</option>
|
||||
<option value="startsWith">At beginning of term</option>
|
||||
<option value="anywhere">Anywhere in term</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Find Term"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<c:if test="${ ! empty sessionScope.visit.query.results}">
|
||||
<div id="results" class="highlightBox">
|
||||
<h2> Search Results </h2>
|
||||
<ol>
|
||||
<c:forEach var="resultsMapItem" items="${sessionScope.visit.query.results}">
|
||||
<c:set var="cls" value=""/>
|
||||
<c:if test="${ resultsMapItem.key == sessionScope.visit.query.entry.metaId }">
|
||||
<c:set var="cls" value="class='selected'"/>
|
||||
</c:if>
|
||||
<li>
|
||||
<c:out value="<a ${cls} href='/lex/action?cmd=displayFull&comp=term&metaId=${resultsMapItem.key}'>${ resultsMapItem.value}</a>" escapeXml="false"/>
|
||||
<br/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ol>
|
||||
</div><!--END MENU-->
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="columnLeft">
|
||||
|
||||
<div id="toc" class="highlightBox">
|
||||
<jsp:include page="displayTreeToc.jsf"/>
|
||||
</div><!--END TOC-->
|
||||
|
||||
</div><!--END COLUMN LEFT-->
|
||||
|
||||
|
||||
<div id="columnCenter">
|
||||
|
||||
<jsp:include page="navLinks.jsf"/>
|
||||
|
||||
<p id="message">
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty message }">
|
||||
<c:out value="${ message }"/>. <br/>
|
||||
</c:when>
|
||||
<c:when test="${ empty message }"></c:when>
|
||||
</c:choose>
|
||||
</p>
|
||||
|
||||
<form action="/lex/action">
|
||||
<p id="helper">
|
||||
|
||||
<span class="label">Display</span>:
|
||||
|
||||
<c:set var="ckd" value=""/>
|
||||
<c:if test="${ sessionScope.visit.helper.showMeta }">
|
||||
<c:set var="ckd" value="checked='checked'"/>
|
||||
</c:if>
|
||||
<c:out value="<input name='showMeta' type='checkbox' value='true' ${ckd}/> credits |" escapeXml="false"/>
|
||||
|
||||
|
||||
<c:set var="ckd" value=""/>
|
||||
<c:if test="${ sessionScope.visit.helper.showNotes }">
|
||||
<c:set var="ckd" value="checked='checked'"/>
|
||||
</c:if>
|
||||
<c:out value="<input name='showNotes' type='checkbox' value='true' ${ckd}/> analysis |" escapeXml="false"/>
|
||||
|
||||
|
||||
<c:set var="ckd" value=""/>
|
||||
<c:if test="${ sessionScope.visit.helper.showTranslations }">
|
||||
<c:set var="ckd" value="checked='checked'"/>
|
||||
</c:if>
|
||||
<c:out value="<input name='showTranslations' type='checkbox' value='true' ${ckd}/> translations" escapeXml="false"/>
|
||||
|
||||
|
||||
<c:if test="${ ! sessionScope.visit.user.guest }">
|
||||
<c:set var="ckd" value=""/>
|
||||
<c:if test="${ sessionScope.visit.helper.showEditOptions }">
|
||||
<c:set var="ckd" value="checked='checked'"/>
|
||||
</c:if>
|
||||
<c:out value="| <input name='showEditOptions' type='checkbox' value='true' ${ckd}/> edit options" escapeXml="false"/>
|
||||
|
||||
</c:if>
|
||||
|
||||
<c:out value="<input type='hidden' name='metaId' value='${ sessionScope.visit.query.entry.metaId }'/>" escapeXml="false"/>
|
||||
<input type="hidden" name="cmd" value="displayFull"/>
|
||||
<input type="hidden" name="comp" value="term"/>
|
||||
<input type="submit" value="Redisplay"/>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<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>
|
||||
|
||||
<div id="entry">
|
||||
<c:choose>
|
||||
<c:when test="${ param.comp == 'encyclopediaArticle' && param.cmd == 'display' }">
|
||||
<jsp:include page="encyclopedia.jsf" flush="false"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<jsp:include page="displayTree.jsf" flush="false"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div><!--END ENTRY-->
|
||||
</div><!--END columnMain-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false"/>
|
||||
|
||||
|
78
webroot/jsp/displayEtymology.jsf
Normal file
|
@ -0,0 +1,78 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--ETYMOLOGY-->
|
||||
<c:set var="etymology" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=etymology&metaId=${etymology.metaId}" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=etymology&metaId=${ etymology.metaId }&parentId=${etymology.parentId}" title="Edit this Etymology"><img alt="Edit this component" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getTranslationForm&comp=etymology&parentId=${etymology.parentId}&translationOf=${etymology.metaId}" title="Translate this Etymology"><img alt="Translate this Etymology" src="/lex/images/trans.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=etymology&metaId=${ etymology.metaId }&parentId=${etymology.parentId}" title="Remove this Etymology"><img alt="Remove this component" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<em><c:out value="${ applicationScope.flatData.etymologyTypes[ etymology.etymologyType ] }" /></em>;
|
||||
|
||||
<c:set var="loanLang" value="${ applicationScope.flatData.languages[ etymology.loanLanguage ] }" />
|
||||
<c:if test="${ ! empty loanLang }">
|
||||
<c:out value="${ loanLang }" escapeXml="false" />;
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ etymology.etymologyDescription }" escapeXml="false" />
|
||||
|
||||
<c:if test="${ empty etymology.derivation != 'none' }">
|
||||
<%-- <span class="label">Derivation</span>: --%>
|
||||
<c:out value="${ etymology.derivation }" escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
<c:if test="${sessionScope.visit.helper.showTranslations }">
|
||||
<!--translation-->
|
||||
<c:set value="${etymology.translations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Translations</h3>
|
||||
<ul>
|
||||
|
||||
<c:forEach var="translation" items="${ etymology.translations }" >
|
||||
<li>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=etymology&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Edit this etymology"><img alt="Edit this etymology" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=etymology&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Remove this etymology"><img alt="Remove this etymology" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<span class="translation">
|
||||
<c:out value="${ translation.etymologyDescription }" escapeXml="false" /> <br />
|
||||
<c:out value="${ applicationScope.flatData.etymologyTypes[ translation.etymologyType ] }" escapeXml="false" /> <br />
|
||||
<c:out value="${ applicationScope.flatData.languages[ translation.loanLanguage ] }" escapeXml="false" /> <br />
|
||||
<c:out value="${ translation.derivation }" escapeXml="false" />
|
||||
|
||||
</span>
|
||||
<c:set var="originalComponent" value="${ etymology }" />
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ translation }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ originalComponent }" />
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
205
webroot/jsp/displayForm.jsp
Normal file
|
@ -0,0 +1,205 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<% request.setCharacterEncoding("UTF-8"); %>
|
||||
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
<jsp:include page="navLinks.jsf" flush="false" />
|
||||
|
||||
<!--displayEntry.jsp-->
|
||||
|
||||
<div id="label">Component Entry Form Page
|
||||
</div><!--END label-->
|
||||
|
||||
<div id="message">
|
||||
<c:if test="${ ! empty message }">
|
||||
<span><c:out value="${ message }"/></span>
|
||||
</c:if>
|
||||
</div><!--END message-->
|
||||
|
||||
<div id="columnSingle">
|
||||
<c:if test="${ ! empty termEntry }">
|
||||
<div id="backButton">
|
||||
Back to:
|
||||
<c:out value='<a href="/lex/action?cmd=displayFull&comp=term&id=${ termEntry.term.id }">${ termEntry.term.term }</a>' escapeXml="false" />
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ param.cmd != 'getInsertForm'
|
||||
&& param.cmd != 'getUpdateForm'
|
||||
&& param.cmd != 'getTranslationForm'
|
||||
&& param.cmd != 'getAnnotationForm'}">
|
||||
<c:set var="editMode" value="${ true }" />
|
||||
</c:if>
|
||||
<c:if test="${ displayMode == 'addEditForm' }">
|
||||
<c:set var="updateForm" value="${ true }" />
|
||||
</c:if>
|
||||
<c:if test="${ displayMode == 'addNewComponent' && param.cmd != 'getAnnotationForm' }">
|
||||
<c:set var="newForm" value="${ true }" />
|
||||
</c:if>
|
||||
|
||||
<c:set var="cmd" value="remove"/>
|
||||
<c:if test="${ param.cmd == 'getRemoveTermForm' }">
|
||||
<c:set var="cmd" value="removeTerm"/>
|
||||
</c:if>
|
||||
<c:if test="${ param.cmd == 'getRemoveForm' || param.cmd == 'getRemoveTermForm' }">
|
||||
<c:out value='<form action="/lex/action" method="get">' escapeXml="false"/>
|
||||
<p class="warning">
|
||||
<c:out value='<input type="hidden" name="cmd" value="${cmd}"/>' escapeXml="false"/>
|
||||
<c:out value='<input type="hidden" name="comp" value="${param.comp}"/>' escapeXml="false"/>
|
||||
<c:out value='<input type="hidden" name="metaId" value="${ param.metaId }"/>' escapeXml="false"/>
|
||||
<c:out value='<input type="hidden" name="parentId" value="${ param.parentId }"/>' escapeXml="false"/>
|
||||
<c:if test="${ null != param.translationOf }">
|
||||
<c:out value='<input type="hidden" name="translationOf" value="${ param.translationOf }"/>' escapeXml="false"/>
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="token" value="${ sessionScope.visit.token }" />' escapeXml="false" />
|
||||
<strong>Warning!!</strong> This is your last chance. Are you sure you want to remove this component and all of its sub-components?
|
||||
<input type="submit" value="Yes, I am sure. Delete Now"/>
|
||||
</p>
|
||||
</form>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${component}"/>
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'analyticalNote' }">
|
||||
<h2>Note</h2>
|
||||
<p><c:out value="${ component.analyticalNote }" escapeXml="false" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveTermForm' && param.comp == 'term' }">
|
||||
<p><jsp:include page="displayTerm.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'pronunciation'}">
|
||||
<p><jsp:include page="displayPronunciation.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'etymology'}">
|
||||
<p><jsp:include page="displayEtymology.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'spelling'}">
|
||||
<p><jsp:include page="displaySpelling.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'grammaticalFunction'}">
|
||||
<p><jsp:include page="displayFunction.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'encyclopediaArticle'}">
|
||||
<p><jsp:include page="displayEncyclopediaArticle.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'definition'}">
|
||||
<p><jsp:include page="displayDefinition.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'subdefinition'}">
|
||||
<p><jsp:include page="displaySubdefinition.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'keyword' }">
|
||||
<p><jsp:include page="displayKeyword.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'modelSentence' }">
|
||||
<p><jsp:include page="displayModelSentence.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'translationEquivalent' }">
|
||||
<p><jsp:include page="displayTranslationEquivalent.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'relatedTerm' }">
|
||||
<p><jsp:include page="displayRelatedTerm.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'passage' }">
|
||||
<p><jsp:include page="displayPassage.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'speechRegister' }">
|
||||
<p><jsp:include page="displayRegister.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.cmd == 'getRemoveForm' && param.comp == 'transitionalData' }">
|
||||
<p><jsp:include page="displayTransitionalData.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<%--Insert Form--%>
|
||||
|
||||
<c:when test="${ param.cmd == 'getAnnotationForm' || param.comp == 'analyticalNote' }">
|
||||
<jsp:include page="analyticalNoteForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'term' }">
|
||||
<p><jsp:include page="termForm.jsf" /></p>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'pronunciation'}">
|
||||
<jsp:include page="pronunciationForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'etymology'}">
|
||||
<jsp:include page="etymologyForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'spelling'}">
|
||||
<jsp:include page="spellingForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'grammaticalFunction'}">
|
||||
<jsp:include page="functionForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'encyclopediaArticle'}">
|
||||
<jsp:include page="encyclopediaArticleForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'definition'}">
|
||||
<jsp:include page="definitionForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'subdefinition'}">
|
||||
<jsp:include page="subdefinitionForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'keyword' }">
|
||||
<jsp:include page="keywordForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'modelSentence' }">
|
||||
<jsp:include page="modelSentenceForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'translationEquivalent' }">
|
||||
<jsp:include page="translationEquivalentForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'relatedTerm' }">
|
||||
<jsp:include page="relatedTermForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'passage' }">
|
||||
<jsp:include page="passageForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'speechRegister' }">
|
||||
<jsp:include page="registerForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ param.comp == 'transitionalData' }">
|
||||
<jsp:include page="transitionalDataForm.jsf" />
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
Error: no form was included
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</div><!--END columnSingle-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false" />
|
||||
|
||||
|
28
webroot/jsp/displayFunction.jsf
Normal file
|
@ -0,0 +1,28 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<c:set var="function" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=grammaticalFunction&metaId=${ function.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=grammaticalFunction&metaId=${ function.metaId }" title="Edit this component"><img alt="Edit this component" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=grammaticalFunction&metaId=${ function.metaId }&parentId=${function.parentId}" title="Remove this component"><img alt="Remove this component" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Grammatical Function:</span>-->
|
||||
<c:out value="${ applicationScope.flatData.functionsGeneral[function.function] }" escapeXml="false" />
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
|
32
webroot/jsp/displayKeyword.jsf
Normal file
|
@ -0,0 +1,32 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<c:set var="keyword" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=keyword&metaId=${ keyword.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=keyword&metaId=${ keyword.metaId }" title="Edit this keyword"><img alt="Edit this keyword" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=keyword&metaId=${ keyword.metaId }&parentId=${keyword.parentId}" title="Remove this keyword"><img alt="Remove this keyword" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Keyword:</span>-->
|
||||
<c:out value="${ keyword.keyword }" escapeXml="false" />
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
</p>
|
||||
|
||||
|
53
webroot/jsp/displayMeta.jsf
Normal file
|
@ -0,0 +1,53 @@
|
|||
<%@ page %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<c:set var="isNote" value='${ sessionScope.visit.helper.component.label == "analyticalNote" }'/>
|
||||
<c:set var="isTranslation" value='${ sessionScope.visit.helper.componentIsTranslation }'/>
|
||||
<c:set var="component" value='${ sessionScope.visit.helper.component }'/>
|
||||
|
||||
<c:if test='${ sessionScope.visit.helper.showMeta }'>
|
||||
|
||||
<%-- <br/> --%>
|
||||
|
||||
<c:if test='${ !( isNote || isTranslation ) }'>
|
||||
<a class="meta" href="#"><img src="/lex/images/meta.gif" alt=" view metadata" />
|
||||
</c:if>
|
||||
|
||||
<span class="metadata">
|
||||
|
||||
<c:if test="${ sessionScope.visit.user.developer }">
|
||||
<span class="label"> Id: </span><c:out value="${ component.metaId }" />
|
||||
<br />
|
||||
</c:if>
|
||||
|
||||
<span class="label">Created by </span><c:out value="${ applicationScope.flatData.users[ component.meta.createdBy ] }" escapeXml="false"/>
|
||||
<c:if test="${ ! sessionScope.visit.user.guest }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="date" value="${ component.meta.createdOn }"/>
|
||||
<span class="label">on </span><c:out value="${ sessionScope.visit.helper.formattedDate }" default="unknown" escapeXml="false"/>
|
||||
<span class="label">for </span><c:out value="${ applicationScope.flatData.projectSubjects[ component.meta.createdByProjSub ] }" default="none" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Modified by </span><c:out value="${ applicationScope.flatData.users[ component.meta.modifiedBy ] }" default="unknown" escapeXml="false"/>
|
||||
<c:set target="${ sessionScope.visit.helper }" property="date" value="${ component.meta.modifiedOn }"/>
|
||||
<span class="label">on </span><c:out value="${ sessionScope.visit.helper.formattedDate }" default="unknown" escapeXml="false"/>
|
||||
<span class="label">for </span><c:out value="${ applicationScope.flatData.projectSubjects[ component.meta.modifiedByProjSub ] }" default="none" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Source: </span><c:out value="${ applicationScope.flatData.sources[ component.meta.source ] }" default="unknown" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Script: </span><c:out value="${ applicationScope.flatData.scripts[ component.meta.script ] }" default="unknown" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Language: </span><c:out value="${ applicationScope.flatData.languages[ component.meta.language ] }" default="unknown" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Dialect: </span><c:out value="${ applicationScope.flatData.majorDialectFamilies[ component.meta.dialect ] }" default="unknown" escapeXml="false"/>
|
||||
<br />
|
||||
<span class="label">Translation: </span>
|
||||
<br />
|
||||
<span class="label">Note: </span><c:out value="${ component.meta.note }" default="unknown" escapeXml="false"/> <br />
|
||||
</c:if>
|
||||
|
||||
</span>
|
||||
|
||||
<c:if test='${ !( isNote || isTranslation ) }'>
|
||||
</a>
|
||||
</c:if>
|
||||
|
||||
</c:if>
|
63
webroot/jsp/displayModelSentence.jsf
Normal file
|
@ -0,0 +1,63 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<c:set var="modelSentence" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=modelSentence&metaId=${ modelSentence.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=modelSentence&metaId=${ modelSentence.metaId }" title="Edit this modelSentence"><img alt="Edit this modelSentence" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getTranslationForm&comp=modelSentence&parentId=${modelSentence.parentId}&translationOf=${modelSentence.metaId}" title="Translate this modelSentence"><img alt="Translate this modelSentence" src="/lex/images/trans.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=modelSentence&metaId=${ modelSentence.metaId }&parentId=${modelSentence.parentId}" title="Remove this modelSentence"><img alt="Remove this modelSentence" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Model Sentence:</span>-->
|
||||
<c:out value="${ modelSentence.modelSentence }" escapeXml="false" />
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
<c:if test="${sessionScope.visit.helper.showTranslations }">
|
||||
<c:set value="${modelSentence.translations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Translations</h3>
|
||||
<ul>
|
||||
<c:forEach var="translation" items="${ modelSentence.translations }" >
|
||||
<li>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=modelSentence&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Edit this modelSentence"><img alt="Edit this modelSentence" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=modelSentence&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Remove this modelSentence"><img alt="Remove this modelSentence" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ translation.modelSentence }" escapeXml="false" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ translation }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
41
webroot/jsp/displayNotes.jsf
Normal file
|
@ -0,0 +1,41 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<c:if test="${ sessionScope.visit.helper.showNotes }">
|
||||
|
||||
<!--displayNotes.jsf-->
|
||||
|
||||
<c:set value="${sessionScope.visit.helper.component.analyticalNotes}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Notes</h3>
|
||||
<ol class="notes">
|
||||
<c:forEach var="note" items="${ sessionScope.visit.helper.component.analyticalNotes }">
|
||||
<li>
|
||||
<p class = "data">
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=analyticalNote&metaId=${ note.metaId }&parentId=${ note.parentId }" title="Edit this analyticalNote"><img alt="Edit this analyticalNote" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=analyticalNote&metaId=${ note.metaId }&parentId=${ note.parentId }" title="Remove this analyticalNote"><img alt="Remove this analyticalNote" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
|
||||
<span class="analysis">
|
||||
<c:out value="${ note.analyticalNote }" escapeXml="false" />
|
||||
|
||||
|
||||
<c:set var="parent" value="${ sessionScope.visit.helper.component }" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ note }" />
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ parent }" />
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ol>
|
||||
|
||||
</c:if>
|
||||
</c:if>
|
109
webroot/jsp/displayPassage.jsf
Normal file
|
@ -0,0 +1,109 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<c:set var="passage" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=passage&metaId=${ passage.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=passage&metaId=${ passage.metaId }" title="Edit this passage"><img alt="Edit this passage" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getTranslationForm&comp=passage&parentId=${passage.parentId}&translationOf=${passage.metaId}" title="Translate this passage"><img alt="Translate this passage" src="/lex/images/trans.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=passage&metaId=${ passage.metaId }&parentId=${ passage.parentId }" title="Remove this passage"><img alt="Remove this passage" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<c:set var="source" value="${ applicationScope.flatData.literarySources[ passage.literarySource ] }"/>
|
||||
|
||||
<c:if test="${ ! empty source }">
|
||||
<!--<span class="label">Literary Source:</span>-->
|
||||
<c:out value="${ source }" escapeXml="false" /> <br />
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty passage.spelling }">
|
||||
<span class="label">Spelling:</span>
|
||||
<c:out value="${ passage.spelling }" escapeXml="false" /> <br />
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty passage.pagination && ! passage.pagination == ' ' }">
|
||||
<span class="label">Pagination:</span>
|
||||
'<c:out value="${ passage.pagination }" escapeXml="false" />' <br />
|
||||
</c:if>
|
||||
|
||||
<!--If it's a Tibetan Passage, convert the wylie.-->
|
||||
<c:if test="${ passage.meta.language == 2 }">
|
||||
<c:set target="${ sessionScope.visit.helper}" property="wylie" value="${ passage.passage }"/>
|
||||
<c:catch var="exception">
|
||||
<c:set var="tib" value="${ sessionScope.visit.helper.tibetan } " />
|
||||
<c:if test="${ ! empty tib }">
|
||||
<div class="tmw-block"><c:out value="${ tib }" escapeXml="false" /></div>
|
||||
</c:if>
|
||||
</c:catch>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty exception }">
|
||||
<span class="error-info">Wylie conversion error (view source for details)</span>
|
||||
<!-- <c:out value="${ exception }"/> -->
|
||||
<!--Here was the wylie: <c:out value="${ passage.passage }" /> -->
|
||||
</c:if>
|
||||
|
||||
<div><c:out value="${ passage.passage }" escapeXml="false"/></div>
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
<c:if test="${sessionScope.visit.helper.showTranslations }">
|
||||
<c:set value="${passage.translations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Translations</h3>
|
||||
<ul>
|
||||
<c:forEach var="translation" items="${ passage.translations }" >
|
||||
<li>
|
||||
<p class="data">
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=passage&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Edit this passage"><img alt="Edit this passage" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=passage&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Remove this passage"><img alt="Remove this passage" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
<c:set var="source" value="${ LexFlatDataRepository.literarySources[ translation.literarySource ] }"/>
|
||||
|
||||
<c:if test="${ ! empty source }">
|
||||
<c:out value="${ source }" /> <br />
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty translation.spelling }">
|
||||
<span class="label">Spelling:</span>
|
||||
<c:out value="${ translation.spelling }" /> <br />
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty translation.pagination && ! translation.pagination == ' ' }">
|
||||
<span class="label">Pagination:</span>
|
||||
<c:out value="${ translation.pagination }" /> <br />
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ translation.passage }" />
|
||||
|
||||
<c:set var="originalComponent" value="${ passage }" />
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ translation }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ originalComponent }" />
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
|
33
webroot/jsp/displayPronunciation.jsf
Normal file
|
@ -0,0 +1,33 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--PRONUNCIATION-->
|
||||
<c:set var="pronunciation" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=pronunciation&metaId=${ pronunciation.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=pronunciation&metaId=${ pronunciation.metaId }" title="Edit this component"><img alt="Edit this component" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=pronunciation&metaId=${ pronunciation.metaId }&parentId=${pronunciation.parentId}" title="Remove this component"><img alt="Remove this component" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Type of Phonetics:</span> -->
|
||||
<em><c:out value="${ applicationScope.flatData.phoneticsTypes[ pronunciation.phoneticsType ] }" escapeXml="false"/></em>;
|
||||
<!--<span class="label">Phonetic Rendering:</span>-->
|
||||
<strong><c:out value="${ pronunciation.phonetics }" escapeXml="false"/></strong>
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
</p>
|
||||
|
30
webroot/jsp/displayRegister.jsf
Normal file
|
@ -0,0 +1,30 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<c:set var="register" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=speechRegister&metaId=${ register.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=speechRegister&metaId=${ register.metaId }" title="Edit this speechRegister"><img alt="Edit this speechRegister" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=speechRegister&metaId=${ register.metaId }&parentId=${register.parentId}" title="Remove this speechRegister"><img alt="Remove this speechRegister" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
<!--<span class="label">Speech Register:</span>-->
|
||||
<c:out value="${ applicationScope.flatData.registers[register.register] }" escapeXml="false" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
</p>
|
||||
|
||||
|
33
webroot/jsp/displayRelatedTerm.jsf
Normal file
|
@ -0,0 +1,33 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
<c:set var="relatedTerm" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=relatedTerm&metaId=${ relatedTerm.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=relatedTerm&metaId=${ relatedTerm.metaId }" title="Edit this relatedTerm"><img alt="Edit this relatedTerm" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=relatedTerm&metaId=${ relatedTerm.metaId }&parentId=${relatedTerm.parentId}" title="Remove this relatedTerm"><img alt="Remove this relatedTerm" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Related Term:</span>-->
|
||||
<c:out value="${ relatedTerm.relatedTerm }" escapeXml="false" /> <br />
|
||||
<!--<span class="label">Related Term Type:</span> -->
|
||||
<c:out value="${ applicationScope.flatData.relatedTermTypes[relatedTerm.relatedTermType] }" escapeXml="false" />
|
||||
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
</p>
|
||||
|
28
webroot/jsp/displaySpelling.jsf
Normal file
|
@ -0,0 +1,28 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<c:set var="spelling" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=spelling&metaId=${ spelling.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=spelling&metaId=${ spelling.metaId }" title="Edit this component"><img alt="Edit this component" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=spelling&metaId=${ spelling.metaId }&parentId=${spelling.parentId}" title="Remove this component"><img alt="Remove this component" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
|
||||
|
||||
<!--<span class="label">Spelling Type:</span> -->
|
||||
<em><c:out value="${ applicationScope.flatData.spellingTypes[ spelling.spellingType ] }" escapeXml="false" /></em>
|
||||
|
||||
<!--<span class="label">Spelling:</span> -->
|
||||
<strong><c:out value="${ spelling.spelling }" escapeXml="false" /></strong>
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
</p>
|
65
webroot/jsp/displaySubdefinition.jsf
Normal file
|
@ -0,0 +1,65 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--SUBDEFINITION-->
|
||||
<c:set var="subdefinition" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=subdefinition&metaId=${ subdefinition.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=subdefinition&metaId=${ subdefinition.metaId }" title="Edit this subdefinition"><img alt="Edit this subdefinition" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getTranslationForm&comp=subdefinition&parentId=${subdefinition.parentId}&translationOf=${subdefinition.metaId}" title="Translate this subdefinition"><img alt="Translate this subdefinition" src="/lex/images/trans.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=keyword&parentId=${subdefinition.metaId}" title="Add a Keyword"><img alt="Add a Keyword" src="/lex/images/key.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=modelSentence&parentId=${subdefinition.metaId}" title="Add a Model Sentence"><img alt="Add a Model Sentence" src="/lex/images/sent.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=translationEquivalent&parentId=${subdefinition.metaId}" title="Add a Translation Equivalent"><img alt="Add a Translation Equivalent" src="/lex/images/trans-eqv.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=relatedTerm&parentId=${subdefinition.metaId}" title="Add a Related Term"><img alt="Add a Related Term" src="/lex/images/rel-term.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=passage&parentId=${subdefinition.metaId}" title="Add a Passage"><img alt="Add a Passage" src="/lex/images/pass.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=speechRegister&parentId=${subdefinition.metaId}" title="Add a Speech Register"><img alt="Add a Speech Register" src="/lex/images/reg.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=subdefinition&metaId=${ subdefinition.metaId }&parentId=${subdefinition.parentId}" title="Remove this subdefinition"><img alt="Remove this subdefinition" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ subdefinition.subdefinition }" escapeXml="false" />
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
<c:if test="${sessionScope.visit.helper.showTranslations }">
|
||||
<c:set value="${subdefinition.translations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<h3>Translations</h3>
|
||||
<ul>
|
||||
<c:forEach var="translation" items="${ subdefinition.translations }" >
|
||||
<li>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=subdefinition&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Edit this subdefinition"><img alt="Edit this subdefinition" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=subdefinition&metaId=${ translation.metaId }&translationOf=${ translation.translationOf }&parentId=${ translation.parentId }" title="Remove this subdefinition"><img alt="Remove this subdefinition" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<c:out value="${ translation.subdefinition }" escapeXml="false" />
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ translation }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
</p>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
</p>
|
||||
|
46
webroot/jsp/displayTerm.jsf
Normal file
|
@ -0,0 +1,46 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<!--displayTerm.jsf-->
|
||||
|
||||
|
||||
|
||||
|
||||
<!--TERM-->
|
||||
<h1 class="tmw-block">
|
||||
<c:set target="${ sessionScope.visit.helper}" property="wylie" value="${ sessionScope.visit.query.entry.term }"/>
|
||||
<c:catch var="exception">
|
||||
<c:out value="${ sessionScope.visit.helper.tibetan }" escapeXml="false"/>
|
||||
</c:catch>
|
||||
<c:if test="${ ! empty exception }">
|
||||
<span class="error-info">Wylie conversion error: <c:out value="${ exception }"/></span>
|
||||
</c:if>
|
||||
</h1>
|
||||
|
||||
<p class="data" >
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateTermForm&comp=term&metaId=${ sessionScope.visit.query.entry.metaId }" title="Edit Term"><img alt="Edit Term" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=term&metaId=${sessionScope.visit.query.entry.metaId}" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=pronunciation&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Pronunciation"><img alt="Add Pronunciation" src="/lex/images/pron.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=etymology&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Etymology"><img alt="Add Etymology" src="/lex/images/etym.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=spelling&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Spelling"><img alt="Add Spelling" src="/lex/images/spell.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=grammaticalFunction&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Grammatical Function"><img alt="Add a Grammatical Function" src="/lex/images/gram.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=encyclopediaArticle&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Encyclopedia Article"><img alt="Add Encyclopedia Article" src="/lex/images/ency.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getInsertForm&comp=definition&parentId=${sessionScope.visit.query.entry.metaId}" title="Add Definition"><img alt="Add Definition" src="/lex/images/def.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveTermForm&comp=term&metaId=${ sessionScope.visit.query.entry.metaId }" title="Remove Term"><img alt="Edit Term" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<strong><c:out value="${ sessionScope.visit.query.entry.term }" /></strong>
|
||||
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${ sessionScope.visit.query.entry }" />
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
</p>
|
||||
|
||||
<!--END TERM-->
|
||||
|
29
webroot/jsp/displayTransitionalData.jsf
Normal file
|
@ -0,0 +1,29 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--displayTransitionalData.jsf-->
|
||||
|
||||
|
||||
|
||||
<!--TRANSITIONAL DATA-->
|
||||
<c:set var="transitionalData" value="${ sessionScope.visit.helper.component }"/>
|
||||
<c:if test="${ transitionalData.forPublicConsumption == 'true' || ! sessionScope.visit.user.guest }">
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<p class="data">
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=transitionalData&metaId=${ transitionalData.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=transitionalData&metaId=${ transitionalData.metaId }" title="Edit this component"><img alt="Edit this component" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=transitionalData&metaId=${ transitionalData.metaId }&parentId=${transitionalData.parentId}" title="Remove this component"><img alt="Remove this component" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<span><c:out value="${ applicationScope.flatData.transitionalDataLabels[ transitionalData.transitionalDataLabel ] }" /></span> <c:out value="${ pronunciation.phonetics }" escapeXml="false"/> <br />
|
||||
<c:out value="${ transitionalData.transitionalDataText }" escapeXml="false"/>
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
</p>
|
||||
</li>
|
||||
</c:if>
|
28
webroot/jsp/displayTranslationEquivalent.jsf
Normal file
|
@ -0,0 +1,28 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
|
||||
|
||||
|
||||
<c:set var="translationEquivalent" value="${ sessionScope.visit.helper.component }"/>
|
||||
<p class="data">
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
<span class="compEditOptions">
|
||||
<c:out value='<a href="/lex/action?cmd=getAnnotationForm&comp=translationEquivalent&metaId=${ translationEquivalent.metaId }" title="Add Analytical Note"><img alt="Add Analytical Note" src="/lex/images/note.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getUpdateForm&comp=translationEquivalent&metaId=${ translationEquivalent.metaId }" title="Edit this translationEquivalent"><img alt="Edit this translationEquivalent" src="/lex/images/edit.gif"/></a>' escapeXml="false" />
|
||||
<c:out value='<a href="/lex/action?cmd=getRemoveForm&comp=translationEquivalent&metaId=${ translationEquivalent.metaId }&parentId=${translationEquivalent.parentId}" title="Remove this translationEquivalent"><img alt="Remove this translationEquivalent" src="/lex/images/remove.gif"/></a>' escapeXml="false" />
|
||||
</span>
|
||||
</c:if>
|
||||
|
||||
<!--<span class="label">Translation Equivalent: </span> -->
|
||||
<c:out value="${ translationEquivalent.translationEquivalent }" escapeXml="false" />
|
||||
|
||||
<jsp:include page="displayMeta.jsf" />
|
||||
|
||||
<jsp:include page="displayNotes.jsf" />
|
||||
|
||||
|
||||
</p>
|
||||
|
||||
|
271
webroot/jsp/displayTree.jsf
Normal file
|
@ -0,0 +1,271 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<!--displayTree.jsf-->
|
||||
|
||||
<c:set var="editMode" value="${ false }"/>
|
||||
<c:if test="${ ! sessionScope.visit.user.guest }">
|
||||
<c:set var="editMode" value="${ true }"/>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty sessionScope.visit.query.entry }">
|
||||
|
||||
<jsp:include page="displayTerm.jsf" flush="false"/>
|
||||
|
||||
<ol> <!--TERM CHILDREN-->
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.pronunciations}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--PRONUNCIATION-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Pronunciations</h2>
|
||||
<ul>
|
||||
<c:forEach var="pronunciation" items="${ sessionScope.visit.query.entry.pronunciations }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${pronunciation}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayPronunciation.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.etymologies}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--ETYMOLOGY-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Etymologies</h2>
|
||||
<ul>
|
||||
<c:forEach var="etymology" items="${ sessionScope.visit.query.entry.etymologies }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${etymology}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayEtymology.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.spellings}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--SPELLINGS-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Spellings</h2>
|
||||
<ul>
|
||||
<c:forEach var="spelling" items="${ sessionScope.visit.query.entry.spellings }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${spelling}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displaySpelling.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.functions}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--FUNCTIONS-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Functions</h2>
|
||||
<ul>
|
||||
<c:forEach var="function" items="${ sessionScope.visit.query.entry.functions }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${function}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayFunction.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.encyclopediaArticles}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--ENCYCLOPEDIA ARTICLES-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Encyclopedia Articles</h2>
|
||||
<ul>
|
||||
<c:forEach var="encyclopediaArticle" items="${ sessionScope.visit.query.entry.encyclopediaArticles }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${encyclopediaArticle}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayEncyclopediaArticle.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.definitions}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<li>
|
||||
<h2>Definitions</h2>
|
||||
<!--DEFINITION LOOP-->
|
||||
<ol>
|
||||
<c:forEach var="definition" items="${sessionScope.visit.query.entry.definitions}">
|
||||
<li>
|
||||
<%-- <h2><c:out value='Definition ${ definition.precedence + 1}' /></h2> --%>
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${definition}"/>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayDefinition.jsf" flush="false"/>
|
||||
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${definition.subdefinitions}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--SUBDEFINITION-->
|
||||
<ol><!--subdefinition list-->
|
||||
<c:forEach var="subdefinition" items="${ definition.subdefinitions }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${subdefinition}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displaySubdefinition.jsf" flush="false"/>
|
||||
|
||||
<ol><!--subdefinition children list-->
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.keywords}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--KEYWORD-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Keywords</h2>
|
||||
<ul>
|
||||
<c:forEach var="keyword" items="${ subdefinition.keywords }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${keyword}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayKeyword.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.modelSentences}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--MODEL SENTENCE-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Model Sentences</h2>
|
||||
<ul>
|
||||
<c:forEach var="modelSentence" items="${ subdefinition.modelSentences }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${modelSentence}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayModelSentence.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.translationEquivalents}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--TRANSLATION EQUIVALENT-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Translation Equivalents</h2>
|
||||
<ul>
|
||||
<c:forEach var="translationEquivalent" items="${ subdefinition.translationEquivalents }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${translationEquivalent}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayTranslationEquivalent.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.relatedTerms}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--RELATED TERM-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Related Term</h2>
|
||||
<ul>
|
||||
<c:forEach var="relatedTerm" items="${ subdefinition.relatedTerms }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${relatedTerm}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayRelatedTerm.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.passages}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--PASSAGE-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Passages</h2>
|
||||
<ul>
|
||||
<c:forEach var="passage" items="${ subdefinition.passages }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${passage}"/>
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayPassage.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${subdefinition.registers}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--REGISTER-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Registers</h2>
|
||||
<ul>
|
||||
<c:forEach var="register" items="${ subdefinition.registers }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${register}"/>
|
||||
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
<jsp:include page="displayRegister.jsf" flush="false"/>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
</ol><!--end subdefinition children list-->
|
||||
</li>
|
||||
|
||||
</c:forEach><!--END SUBDEFINITION LOOP-->
|
||||
|
||||
</ol><!--end subdefinition list-->
|
||||
</c:if>
|
||||
</li>
|
||||
</c:forEach><!--END DEFINITION LOOP-->
|
||||
</ol>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<c:set target="${sessionScope.visit.helper}" property="collection" value="${sessionScope.visit.query.entry.transitionalData}"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<!--TRANSITIONAL DATA-->
|
||||
<li>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForCollection }'></a>" escapeXml="false"/>
|
||||
<h2>Other Dictionaries</h2>
|
||||
<ul>
|
||||
<c:forEach var="transitionalData" items="${ sessionScope.visit.query.entry.transitionalData }">
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${transitionalData}"/>
|
||||
<jsp:include page="displayTransitionalData.jsf" flush="false"/>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
</ol><!--end term children list-->
|
||||
</c:if>
|
141
webroot/jsp/displayTreeToc.jsf
Normal file
|
@ -0,0 +1,141 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<!--displayTreeToc.jsf-->
|
||||
|
||||
<h2>Term Map</h2>
|
||||
<h3>
|
||||
<c:out value="${ sessionScope.visit.query.entry.term }"/>
|
||||
</h3>
|
||||
|
||||
<ol>
|
||||
|
||||
<!--PRONUNCIATION-->
|
||||
<c:set value="${sessionScope.visit.query.entry.pronunciations}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Pronunciations</a></li>' escapeXml='false' />
|
||||
<c:forEach var="pronunciation" items="${ sessionScope.visit.query.entry.pronunciations }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--ETYMOLOGY-->
|
||||
<c:set value="${sessionScope.visit.query.entry.etymologies}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Etymologies</a></li>' escapeXml='false' />
|
||||
<c:forEach var="etymology" items="${ sessionScope.visit.query.entry.etymologies }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--SPELLINGS-->
|
||||
<c:set value="${sessionScope.visit.query.entry.spellings}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Spellings</a></li>' escapeXml='false' />
|
||||
<c:forEach var="spelling" items="${ sessionScope.visit.query.entry.spellings }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--FUNCTIONS-->
|
||||
<c:set value="${sessionScope.visit.query.entry.functions}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Functions</a></li>' escapeXml='false' />
|
||||
<c:forEach var="function" items="${ sessionScope.visit.query.entry.functions }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--ENCYCLOPEDIA ARTICLES-->
|
||||
<c:set value="${sessionScope.visit.query.entry.encyclopediaArticles}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Encyclopedia Articles</a></li>' escapeXml='false' />
|
||||
<c:forEach var="encyclopediaArticle" items="${ sessionScope.visit.query.entry.encyclopediaArticles }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--DEFINITION LOOP-->
|
||||
<c:set value="${sessionScope.visit.query.entry.definitions}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<li>
|
||||
<c:out value='<a href="#${sessionScope.visit.helper.hashCodeForCollection}">Definitions</a>' escapeXml='false' />
|
||||
<ol>
|
||||
<c:forEach var="definition" items="${sessionScope.visit.query.entry.definitions}">
|
||||
<li>
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${definition}"/>
|
||||
<c:out value="<a name='${ sessionScope.visit.helper.hashCodeForComponent }'></a>" escapeXml="false"/>
|
||||
|
||||
<c:out value='<a href="#${sessionScope.visit.helper.hashCodeForComponent}">Definition ${ sessionScope.visit.helper.indexOfComponent }</a>' escapeXml='false' />
|
||||
|
||||
<ol>
|
||||
|
||||
<!--SUBDEFINITION-->
|
||||
<c:set value="${definition.subdefinitions}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:forEach var="subdefinition" items="${ definition.subdefinitions }">
|
||||
<li>
|
||||
<c:set target="${ sessionScope.visit.helper }" property="component" value="${subdefinition}"/>
|
||||
<c:out value='<a href="#${sessionScope.visit.helper.hashCodeForComponent}">Subdefinition ${ sessionScope.visit.helper.indexOfComponent }</a>' escapeXml='false' />
|
||||
|
||||
<ol>
|
||||
|
||||
<!--KEYWORD-->
|
||||
<c:set value="${subdefinition.keywords}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Keywords</a></li>' escapeXml='false' />
|
||||
<c:forEach var="keyword" items="${ subdefinition.keywords }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--MODEL SENTENCE-->
|
||||
<c:set value="${subdefinition.modelSentences}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Model Sentences</a></li>' escapeXml='false' />
|
||||
<c:forEach var="modelSentence" items="${ subdefinition.modelSentences }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--TRANSLATION EQUIVALENT-->
|
||||
<c:set value="${subdefinition.translationEquivalents}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Translations</a></li>' escapeXml='false' />
|
||||
<c:forEach var="translationEquivalent" items="${ subdefinition.translationEquivalents }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--RELATED TERM-->
|
||||
<c:set value="${subdefinition.relatedTerms}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">RelatedTerm</a></li>' escapeXml='false' />
|
||||
<c:forEach var="relatedTerm" items="${ subdefinition.relatedTerms }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--PASSAGE-->
|
||||
<c:set value="${subdefinition.passages}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Passages</a></li>' escapeXml='false' />
|
||||
<c:forEach var="passage" items="${ subdefinition.passages }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
<!--REGISTER-->
|
||||
<c:set value="${subdefinition.registers}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Registers</a></li>' escapeXml='false' />
|
||||
<c:forEach var="register" items="${ subdefinition.registers }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
</ol>
|
||||
</li>
|
||||
|
||||
</c:forEach><!--END SUB-DEFINITIONS-->
|
||||
</c:if>
|
||||
|
||||
</ol>
|
||||
</li>
|
||||
|
||||
</c:forEach><!--END DEFINITIONS-->
|
||||
</ol>
|
||||
</li>
|
||||
</c:if>
|
||||
|
||||
<!--TRANSITIONAL DATA-->
|
||||
<c:set value="${sessionScope.visit.query.entry.transitionalData}" target="${sessionScope.visit.helper}" property="collection"/>
|
||||
<c:if test="${ sessionScope.visit.helper.collectionSize > 0 }">
|
||||
<c:out value='<li><a href="#${sessionScope.visit.helper.hashCodeForCollection}">Other Dictionaries</a></li>' escapeXml='false' />
|
||||
<c:forEach var="transitionalData" items="${ sessionScope.visit.query.entry.transitionalData }"></c:forEach>
|
||||
</c:if>
|
||||
|
||||
|
||||
<%-- </ol>
|
||||
</li> --%>
|
||||
|
||||
</ol>
|
||||
|
19
webroot/jsp/encyclopedia.jsf
Normal file
|
@ -0,0 +1,19 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
|
||||
<%-- <%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" buffer="512kb" autoFlush="false" %> --%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--encyclopedia.jsf-->
|
||||
|
||||
<!--ENCYCLOPEDIA ARTICLES-->
|
||||
|
||||
<h1>Encyclopedia Article</h1>
|
||||
<p class="data">
|
||||
<span class="label">Title:</span> <c:out value="${ component.articleTitle }" escapeXml="false"/> <br />
|
||||
</p>
|
||||
<p class="data">
|
||||
<span class="label">Author:</span>
|
||||
<c:out value="${ component.metaDisplayMap['createdBy'] }" escapeXml="false"/>
|
||||
</p>
|
||||
<p class="data">
|
||||
<span class="label"> Article:</span> <br />
|
||||
<c:out value="${ component.article }" escapeXml="false"/> <br />
|
||||
</p>
|
54
webroot/jsp/encyclopediaArticleForm.jsf
Normal file
|
@ -0,0 +1,54 @@
|
|||
<%-- <%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %> --%>
|
||||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %><%@ page import="java.util.HashMap" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<%-- <%@ taglib prefix="input" uri="http://jakarta.apache.org/taglibs/input-1.0" %> --%>
|
||||
<!--encyclopediaArticleForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="article" value="" />
|
||||
<c:set var="articleTitle" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="article" value="${ component.article }" />
|
||||
<c:set var="articleTitle" value="${ component.articleTitle }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="article" value="ERROR" />
|
||||
<c:set var="articleTitle" value="ERROR" />
|
||||
<c:set var="metaId" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="encyclopediaArticle" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Article Title: <br />
|
||||
<textarea name="articleTitle" rows="2" cols="90"><c:out value='${ articleTitle }' escapeXml='false' /></textarea>
|
||||
<br />
|
||||
|
||||
Article: <br />
|
||||
<textarea name="article" rows="24" cols="100"><c:out value='${ article }' escapeXml='false' /></textarea>
|
||||
<br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Encyclopedia Article" />
|
||||
</p>
|
||||
</form>
|
68
webroot/jsp/error.jsp
Normal file
|
@ -0,0 +1,68 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="java.io.*, org.thdl.lex.*,org.thdl.lex.component.*" isErrorPage="true" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<style>
|
||||
#debug table
|
||||
{
|
||||
border: black solid 1px;
|
||||
/* border-collapse:collapse;
|
||||
border-color: black;
|
||||
border-style:solid;
|
||||
border-weight:1px; */
|
||||
color:black;
|
||||
width: 790px;;
|
||||
margin:5px 5px 5px 5px;
|
||||
}
|
||||
#debug th, #debug td
|
||||
{
|
||||
border: black solid 1px;
|
||||
background-color:cyan;
|
||||
font-size:.9em;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
|
||||
<title>THDL Dictionary Error Page</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="error">
|
||||
<p>
|
||||
You have reached the Error page.
|
||||
This page indicates that Lex has caught an exception that it does not know how to deal with.
|
||||
The message appears below.<br />
|
||||
<a href="/lex/action">Return to the home page.</a> <br /><br />
|
||||
|
||||
|
||||
<b>Message: </b> <%= exception.getMessage() %> <br /><br />
|
||||
|
||||
<% if (request.getAttribute("comp") != null)
|
||||
{ LexComponent lab = (LexComponent) request.getAttribute("comp");
|
||||
%>
|
||||
<b> Label: </b> <i> <%= lab %> </i><br /><br />
|
||||
|
||||
<% } %> <br /><br />
|
||||
|
||||
<b>Stack Trace: </b>
|
||||
<% StringWriter writer = new StringWriter();
|
||||
exception.printStackTrace( new PrintWriter(writer) );
|
||||
String stackTrace = writer.getBuffer().toString();
|
||||
%>
|
||||
<pre>
|
||||
<%= stackTrace %>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<%-- <jsp:include page="debug.jsf" /> --%>
|
||||
|
||||
</body>
|
||||
</html>
|
114
webroot/jsp/etymologyForm.jsf
Normal file
|
@ -0,0 +1,114 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<%-- <%@ taglib prefix="input" uri="http://jakarta.apache.org/taglibs/input-1.0" %> --%>
|
||||
<!--etymologyForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="etymologyDescription" value="" />
|
||||
<c:set var="derivation" value="" />
|
||||
<c:set var="etymologyType" value="0" />
|
||||
<c:set var="loanLanguage" value="0" />
|
||||
<c:set var="metaId" value="" />
|
||||
</c:when>
|
||||
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="derivation" value="${ component.derivation }" />
|
||||
<c:set var="etymologyDescription" value="${ component.etymologyDescription }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
<c:set var="etymologyType" value="${ component.etymologyType }" />
|
||||
<c:set var="loanLanguage" value="${ component.loanLanguage }" />
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="derivation" value="ERROR" />
|
||||
<c:set var="etymologyDescription" value="ERROR" />
|
||||
<c:set var="etymologyType" value="ERROR" />
|
||||
<c:set var="loanLanguage" value="ERROR" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:set var="translateMode" value="${ false }" />
|
||||
<c:if test="${ component.translationOf > 0 }">
|
||||
<c:set var="translateMode" value="${ true }" />
|
||||
<c:set var="originalEtymologyDescription"
|
||||
value="Original Etymology Description: ${ original.etymologyDescription } <br /> Translation " />
|
||||
</c:if>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<c:if test="${ translateMode }">
|
||||
<c:out value='<input type="hidden" name="translationOf" value="${ component.translationOf }" />' escapeXml="false" />
|
||||
</c:if>
|
||||
|
||||
<input type="hidden" name="comp" value="etymology" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
<c:out value="${ originalEtymologyDescription } " escapeXml='false' />
|
||||
|
||||
Etymology Description: <br />
|
||||
<textarea name="etymologyDescription" rows="8" cols="90"><c:if test="${ param.cmd != 'getTranslationForm'}"><c:out value='${ etymologyDescription }' escapeXml='false' /></c:if></textarea>
|
||||
<br />
|
||||
|
||||
Etymology Type:
|
||||
<select name="etymologyType">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == etymologyType }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="etymTypes" items="${ applicationScope.flatData.etymologyTypes }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ etymTypes.key == etymologyType }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ etymTypes.key }' ${sel}>${ etymTypes.value }</option>" escapeXml="false" />
|
||||
</c:forEach>
|
||||
</select>
|
||||
<br />
|
||||
Loan Language:
|
||||
<select name="loanLanguage">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == loanLanguage }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="loanLangs" items="${ applicationScope.flatData.languages }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ loanLangs.key == loanLanguage }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ loanLangs.key }' ${sel}>${ loanLangs.value }</option>" escapeXml="false" />
|
||||
</c:forEach>
|
||||
</select>
|
||||
<br />
|
||||
Derivation:
|
||||
<select name="derivation">
|
||||
<option value="none" selected="selected">none</option>
|
||||
<c:set var="sel" value="" />
|
||||
<c:set var="temp" value="Primary,'dod rgyal/" />
|
||||
<c:if test='${ derivation == temp }'>
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ temp }" ${sel}>' escapeXml="false" />Primary,'dod rgyal/</option>
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test='${ derivation == "Etymological derivate,rjes grub/" }'>
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="Etymological derivate,rjes grub/" ${sel}>' escapeXml="false" />Etymological derivate,rjes grub/</option>
|
||||
</select>
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Etymology" />
|
||||
</p>
|
||||
</form>
|
28
webroot/jsp/footer.jsf
Normal file
|
@ -0,0 +1,28 @@
|
|||
<%@ page import="org.thdl.lex.LexLogger" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<%-- <c:if test="${ ! empty sessionScope.visit.user }">
|
||||
<c:if test="${ sessionScope.visit.user.developer }">
|
||||
<jsp:include page="debug.jsf" flush="false" />
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ ! empty jumpToLocation }">
|
||||
<script type="text/javascript">
|
||||
function scrollIt(anchorname) {
|
||||
if (document.all)
|
||||
document.all(anchorname).scrollIntoView()
|
||||
else if (document.anchors)
|
||||
window.scrollTo(0,document.anchors[anchorname].y);
|
||||
}
|
||||
scrollIt('<c:out value="${ jumpToLocation }"/>');
|
||||
</script>
|
||||
|
||||
</c:if> --%>
|
||||
|
||||
</div><!--END Main-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<% LexLogger.debug( "Footer.jsf has finished rendering." ); %>
|
55
webroot/jsp/functionForm.jsf
Normal file
|
@ -0,0 +1,55 @@
|
|||
<%-- <%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %> --%>
|
||||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %><%@ page import="java.util.HashMap" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<%-- <%@ taglib prefix="input" uri="http://jakarta.apache.org/taglibs/input-1.0" %> --%>
|
||||
<!--functionForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="function" value="0" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="function" value="${ component.function }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="function" value="ERROR" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="grammaticalFunction" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Grammatical Function:
|
||||
<select name="function">
|
||||
<c:forEach var="funcTypes" items="${ applicationScope.flatData.functionsGeneral }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ funcTypes.key == function }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ funcTypes.key }' ${sel}>${ funcTypes.value }</option>" escapeXml="false" /> <br />
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
<br />
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Grammatical Function" />
|
||||
</p>
|
||||
</form>
|
10
webroot/jsp/goodbye.jsp
Normal file
|
@ -0,0 +1,10 @@
|
|||
<%@ page import="java.io.PrintWriter,java.io.StringWriter,org.thdl.lex.*,org.thdl.lex.component.*" isErrorPage="true" contentType="text/html; charset=UTF-8"%>
|
||||
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
|
||||
<p>Thank you</p>
|
||||
<p> Click <a href="/lex/login">here</a> to log back in.</p>
|
||||
|
||||
<jsp:include page="debug.jsf" />
|
||||
<jsp:include page="footer.jsf" />
|
||||
|
84
webroot/jsp/header.jsf
Normal file
|
@ -0,0 +1,84 @@
|
|||
<%@ page import="org.thdl.lex.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8;" />
|
||||
|
||||
<script type='text/javascript' src='http://iris.lib.virginia.edu/tibet/scripts/thdl_scripts.js'></script>
|
||||
<script type='text/javascript' src='/lex/js/lex.js'></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="/lex/css/lex.css" />
|
||||
|
||||
<title>THDL Tibetan Collaborative Dictionaries</title>
|
||||
<style type="text/css">
|
||||
<c:if test="${ ! sessionScope.visit.helper.showEditOptions }">
|
||||
p.data
|
||||
{
|
||||
border: none;
|
||||
}
|
||||
</c:if>
|
||||
/* <%= org.thdl.tib.text.TibetanHTML.getStyles( "20" ) %> */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="banner">
|
||||
<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>
|
||||
<h1>The Tibetan & Himalayan Digital Library</h1>
|
||||
|
||||
<div id="menubar">
|
||||
<%-- <script type='text/javascript'>function Go() { return }</script>
|
||||
<script type='text/javascript' src='http://iris.lib.virginia.edu/tibet/scripts/new/thdl_menu_config.js'></script>
|
||||
<script type='text/javascript' src='http://iris.lib.virginia.edu/tibet/scripts/new/menu_new.js'></script>
|
||||
<script type='text/javascript' src='http://iris.lib.virginia.edu/tibet/scripts/new/menu9_com.js'></script>
|
||||
<noscript><p>Your browser does not support javascript.</p></noscript>
|
||||
<div id='MenuPos' >Menu Loading... </div> --%>
|
||||
</div><!--END menubar-->
|
||||
</div><!--END banner-->
|
||||
|
||||
<div id="sub_banner">
|
||||
<div id="search">
|
||||
<form method="get" action="http://www.google.com/u/thdl">
|
||||
<p>
|
||||
<input type="text" name="q" id="q" size="15" maxlength="255" value="" />
|
||||
<input type="submit" name="sa" id="sa" value="Search"/>
|
||||
<input type="hidden" name="hq" id="hq" value="inurl:iris.lib.virginia.edu"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="breadcrumbs">
|
||||
<a href="http://iris.lib.virginia.edu/tibet/index.html">THDL</a> >
|
||||
<a href="http://iris.lib.virginia.edu/tibet/reference/index.html">Reference</a> >
|
||||
THDL Tibetan Collaborative Dictionaries
|
||||
</div>
|
||||
</div><!--END sub_banner-->
|
||||
|
||||
<div id="main">
|
||||
|
||||
<%-- <!--header.jsf-->
|
||||
<div id="header">
|
||||
|
||||
<jsp:include page="navLinks.jsf" />
|
||||
<c:if test="${ ! empty jumpToLocation }">
|
||||
| <c:out value="<a href='#${ jumpToLocation }'>" escapeXml="false"/>Jump to Most Recent Component</a>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${ false && false && ! empty jumpToLocation }">
|
||||
<script type="text/javascript">
|
||||
function scrollIt(anchorname) {
|
||||
if (document.all)
|
||||
document.all(anchorname).scrollIntoView()
|
||||
else if (document.anchors)
|
||||
window.scrollTo(0,document.anchors[anchorname].y);
|
||||
}
|
||||
scrollIt('<c:out value="${ jumpToLocation }"/>');
|
||||
</script>
|
||||
|
||||
<c:set var="jsParams" value="javascript:scrollIt('${ jumpToLocation }')" />
|
||||
|
||||
</c:if>
|
||||
|
||||
</div><!--end header--> --%>
|
44
webroot/jsp/keywordForm.jsf
Normal file
|
@ -0,0 +1,44 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--keywordForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="keyword" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="keyword" value="${ component.keyword }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="keyword" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="keyword" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Keyword: <br />
|
||||
<textarea name="keyword" rows="8" cols="90"><c:out value='${ keyword }' /></textarea>
|
||||
<br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Keyword" />
|
||||
</p>
|
||||
</form>
|
121
webroot/jsp/menu.jsp
Normal file
|
@ -0,0 +1,121 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<% request.setCharacterEncoding("UTF-8"); %>
|
||||
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
<!--menu.jsp-->
|
||||
<c:set var="editMode" value="${ false }" />
|
||||
<c:if test="${ ! sessionScope.visit.user.guest }">
|
||||
<c:set var="editMode" value="${ true }" />
|
||||
</c:if>
|
||||
|
||||
<div id="columnLeft">
|
||||
|
||||
<div class="highlightBox">
|
||||
<form id="quickSearch" action="/lex/action" method="get" >
|
||||
<h2>Dictionary Quick Search</h2>
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="find" />
|
||||
<input type="hidden" name="comp" value="term" />
|
||||
Term: <input type="text" name="term" id="term" size="20" value="" /> <br />
|
||||
Find:
|
||||
|
||||
<select name="findMode">
|
||||
<option value="exact">Exact match</option>
|
||||
<option value="startsWith">At beginning of term</option>
|
||||
<option value="anywhere">Anywhere in term</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Find Term"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<c:if test="${ editMode }">
|
||||
|
||||
<div class="highlightBox">
|
||||
<form id="newTerm" action="/lex/action" method="get" >
|
||||
<h2>Add a new term</h2>
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="getInsertTermForm" />
|
||||
<input type="hidden" name="comp" value="term" />
|
||||
Term: <input type="text" name="term" id="term" size="20" value="" />
|
||||
</p>
|
||||
<p class="inlineDocumentation">
|
||||
Note: if an exact match of this term already exists, this action will direct to the edit page for that term.
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="New Entry" /> <br />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="highlightBox">
|
||||
<h2>Defaults & Preferences</h2>
|
||||
<form id="defaults" action="/lex/action" method="get" >
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="getMetaDefaultsForm" />
|
||||
<input type="submit" value="Defaults"/>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form id="preferences" action="/lex/action" method="get" >
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="getMetaPrefsForm" />
|
||||
<input type="submit" value="Preferences" /> <br />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form id="oai" action="/lex/action" method="get" >
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="refreshSources" />
|
||||
<input type="submit" value="Refresh Sources" /> <br />
|
||||
</p>
|
||||
</form>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
|
||||
</c:if>
|
||||
</div><!--END COLUMN LEFT-->
|
||||
|
||||
<div id="columnCenter">
|
||||
<jsp:include page="navLinks.jsf" flush="false"/>
|
||||
<h1>THDL Tibetan Collaborative Dictionaries: Main Menu</h1>
|
||||
<p>
|
||||
<c:set target="${ sessionScope.visit.helper }" property="date" value="${ applicationScope.global.lastUpdate }"/>
|
||||
<span class="label">Last Update</span>: <c:out value="${ sessionScope.visit.helper.formattedDate }"/>
|
||||
</p>
|
||||
<c:if test="${ ! empty message }">
|
||||
<p id="message">
|
||||
<c:out value="${ message }" />
|
||||
</p>
|
||||
</c:if>
|
||||
|
||||
<h2>Recently Modified Terms</h2>
|
||||
|
||||
<div id="recentTerms">
|
||||
|
||||
|
||||
<c:forEach var="term" items="${applicationScope.global.recentTerms }">
|
||||
<p class="tmw-block">
|
||||
<c:set target="${ sessionScope.visit.helper}" property="wylie" value="${ term.term }"/>
|
||||
<c:set var="tib" value="${ sessionScope.visit.helper.tibetan } " />
|
||||
<c:out value="<a class='tmw-link' href='/lex/action?cmd=displayFull&comp=term&metaId=${term.metaId}'>${ tib } </a>" escapeXml='false' />
|
||||
|
||||
<c:out value="<a href='/lex/action?cmd=displayFull&comp=term&metaId=${term.metaId}'><span class='tmw-roman'>${ term.term }</span></a>" escapeXml='false' />
|
||||
|
||||
<span class="tmw-roman">
|
||||
Created by <c:out value="${ applicationScope.flatData.users[ term.meta.createdBy ] }" />
|
||||
<c:set target="${ sessionScope.visit.helper }" property="date" value="${ term.meta.modifiedOn }"/>
|
||||
<c:out value="${ sessionScope.visit.helper.formattedDate }" />
|
||||
</span>
|
||||
</p>
|
||||
</c:forEach>
|
||||
</div><!--END RECENT TERMS-->
|
||||
</div><!--END COLUMN CENTER-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false" />
|
||||
|
257
webroot/jsp/metaDefaultsForm.jsp
Normal file
|
@ -0,0 +1,257 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
<!--metaDefaultsForm.jsp-->
|
||||
|
||||
<div id="label"><p>Lex the Dictionary Server: Manage Input Session Form</p></div><!--END label-->
|
||||
|
||||
<div id="message">
|
||||
<p>
|
||||
Message:
|
||||
<c:if test="${ ! empty message }">
|
||||
<c:out value="${ message }" />
|
||||
</c:if>
|
||||
</p>
|
||||
</div><!--END message-->
|
||||
|
||||
<div id="columnSingle">
|
||||
<form id="preferencesForm" action="/lex/action" method="post">
|
||||
|
||||
<c:set var="language" value="${ sessionScope.visit.preferences.language }" />
|
||||
<c:set var="dialect" value="${ sessionScope.visit.preferences.dialect }" />
|
||||
<c:set var="source" value="${ sessionScope.visit.preferences.source }" />
|
||||
<c:set var="projectSubject" value="${ sessionScope.visit.preferences.projectSubject }" />
|
||||
<c:set var="script" value="${ sessionScope.visit.preferences.script }" />
|
||||
<c:set var="note" value="${ sessionScope.visit.preferences.note }" />
|
||||
|
||||
<%-- <c:out value="${ sessionScope.visit.preferences.language }" /> <br />
|
||||
<c:out value="${ sessionScope.visit.preferences.dialect }" /> <br />
|
||||
<c:out value="${ sessionScope.visit.preferences.source }" /> <br />
|
||||
<c:out value="${ sessionScope.visit.preferences.projectSubject }" /> <br />
|
||||
<c:out value="${ sessionScope.visit.preferences.script }" /> --%>
|
||||
|
||||
<p>
|
||||
In the metadata categories below, indicate the option you would like to appear by default.
|
||||
Then check the "Use Default" box next to metadata fields you want to be entered automatically.
|
||||
When this box is checked, the dropdown for that field will not appear
|
||||
(this only applies to forms for new components, not edit forms).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultLanguage }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultLanguage" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Language: <br />
|
||||
<select name="language">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == language }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ language == prefLangs }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefLangs }" ${ sel }>${ applicationScope.flatData.languages[ prefLangs ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="langs" items="${ applicationScope.flatData.languages }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:if test="${ prefLangs == langs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ langs.key == language }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ langs.key }" ${sel}>${ langs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultScript }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultScript" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Script: <br />
|
||||
<select name="script">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == script }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ script == prefScripts }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefScripts }" ${ sel }>${ applicationScope.flatData.scripts[ prefScripts ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="scripts" items="${ applicationScope.flatData.scripts }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:if test="${ prefScripts == scripts.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ scripts.key == script }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ scripts.key }" ${ sel }>${ scripts.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultDialect }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultDialect" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Dialect: <br />
|
||||
<select name="dialect">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == dialect }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ dialect == prefDials }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefDials }" ${ sel }>${ applicationScope.flatData.majorDialectFamilies[ prefDials ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="dials" items="${ applicationScope.flatData.majorDialectFamilies }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:if test="${ prefDials == dials.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ dials.key == dialect }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ dials.key }" ${ sel }>${ dials.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultSource }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultSource" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Source: <br />
|
||||
<select name="source">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == source }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ source == prefSources }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefSources }" ${ sel }>${ applicationScope.flatData.sources[ prefSources ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="srcs" items="${ applicationScope.flatData.sources }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:if test="${ prefSources == srcs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ srcs.key == source }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ srcs.key }" ${ sel }>${ srcs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultProjSub }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultProjSub" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Project/Subject: <br />
|
||||
<select name="projectSubject">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == projectSubject }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ projectSubject == prefProjSub }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefProjSub }" ${ sel }>${ applicationScope.flatData.projectSubjects[ prefProjSub ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="projSubs" items="${ applicationScope.flatData.projectSubjects }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:if test="${ prefProjSub == projSubs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:out value="<!--${ projSubs.key } ${ projectSubject }-->" escapeXml="false" />
|
||||
<c:if test="${ projSubs.key == projectSubject }">
|
||||
<c:set var="sel" value='selected="selected"' />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ projSubs.key }" ${ sel }>${ projSubs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<c:set var="checked" value="" />
|
||||
<c:if test="${ sessionScope.visit.preferences.useDefaultNote }">
|
||||
<c:set var="checked" value="checked='checked'" />
|
||||
</c:if>
|
||||
<c:out value='<input type="checkbox" name="useDefaultNote" value="true" ${checked}/>' escapeXml="false" />
|
||||
Use Default Metadata Note: <br />
|
||||
<textarea name="note" rows="8" cols="90"><c:out value='${ note }' escapeXml='false' /></textarea> <br />
|
||||
|
||||
|
||||
<input type="hidden" name="cmd" value="setMetaDefaults" />
|
||||
<input type="submit" value="Submit Changes to the input session" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
</div><!--END columnSingle-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false" />
|
||||
|
278
webroot/jsp/metaForm.jsf
Normal file
|
@ -0,0 +1,278 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<%@ taglib prefix="sess" uri="http://java.sun.com/jstl/core" %>
|
||||
<%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.0" %>
|
||||
<!--metaForm.jsf-->
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="language" value="${ sessionScope.visit.preferences.language }" />
|
||||
<c:set var="dialect" value="${ sessionScope.visit.preferences.dialect }" />
|
||||
<c:set var="source" value="${ sessionScope.visit.preferences.source }" />
|
||||
<c:set var="projectSubject" value="${ sessionScope.visit.preferences.projectSubject }" />
|
||||
<c:set var="script" value="${ sessionScope.visit.preferences.script }" />
|
||||
<%-- <c:set var="precedence" value="0" /> --%>
|
||||
<c:set var="note" value="${ sessionScope.visit.preferences.note }" />
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="language" value="${ component.meta.language }" />
|
||||
<c:set var="dialect" value="${ component.meta.dialect }" />
|
||||
<c:set var="source" value="${ component.meta.source }" />
|
||||
<c:set var="projectSubject" value="${ component.meta.modifiedByProjSub }" />
|
||||
<c:set var="script" value="${ component.meta.script }" />
|
||||
<%-- <c:set var="precedence" value="${ component.precedence }" /> --%>
|
||||
<c:set var="note" value="${ component.meta.note }" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="language" value="ERROR" />
|
||||
<c:set var="dialect" value="ERROR" />
|
||||
<c:set var="source" value="ERROR" />
|
||||
<c:set var="projectSubject" value="ERROR" />
|
||||
<c:set var="script" value="ERROR" />
|
||||
<c:set var="note" value="ERROR" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:set var="parentId" value="${ component.parentId }" />
|
||||
<%-- <c:if test="${ parentId == null || component.parentId < 1 }">
|
||||
<c:set var="parentId" value="${ param.parentId }" />
|
||||
</c:if> --%>
|
||||
<c:out value=' <input type="hidden" name="parentId" value="${parentId}" /> ' escapeXml='false' />
|
||||
<%-- <c:out value='<input type="hidden" name="precedence" value="${ precedence }" />'escapeXml="false" /> --%>
|
||||
|
||||
|
||||
|
||||
<c:if test="${ ! updateMode && param.cmd != 'getAnnotationForm' && param.cmd != 'getTranslationForm' }">
|
||||
<p>
|
||||
Analysis: <br />
|
||||
<textarea name="analyticalNote" rows="8" cols="90"></textarea>
|
||||
</p>
|
||||
</c:if>
|
||||
|
||||
<!--Add Token-->
|
||||
<c:out value='<input type="hidden" name="token" value="${ sessionScope.visit.token }" />' escapeXml="false" />
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultLanguage || updateMode }">
|
||||
<p>
|
||||
Language:
|
||||
<select name="language">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == language }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ language == prefLangs }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefLangs }" ${ sel }>${ applicationScope.flatData.languages[ prefLangs ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<c:forEach var="langs" items="${ applicationScope.flatData.languages }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:if test="${ prefLangs == langs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ langs.key == language }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ langs.key }" ${sel}>${ langs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="language" value="${ sessionScope.visit.preferences.language }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultScript || updateMode }">
|
||||
<p>
|
||||
Script:
|
||||
<select name="script">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == script }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ script == prefScripts }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefScripts }" ${ sel }>${ applicationScope.flatData.scripts[ prefScripts ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="scripts" items="${ applicationScope.flatData.scripts }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:if test="${ prefScripts == scripts.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ scripts.key == script }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ scripts.key }" ${ sel }>${ scripts.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="script" value="${ sessionScope.visit.preferences.script }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultDialect || updateMode }">
|
||||
<%-- <c:if test="${ ! translateMode }"> --%>
|
||||
<p>
|
||||
Dialect:
|
||||
<select name="dialect">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == dialect }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ dialect == prefDials }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefDials }" ${ sel }>${ applicationScope.flatData.majorDialectFamilies[ prefDials ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="dials" items="${ applicationScope.flatData.majorDialectFamilies }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:if test="${ prefDials == dials.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ dials.key == dialect }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ dials.key }" ${ sel }>${ dials.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="dialect" value="${ sessionScope.visit.preferences.dialect }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultSource || updateMode }">
|
||||
<p>
|
||||
Source:
|
||||
<select name="source">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == source }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ source == prefSources }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefSources }" ${ sel }>${ applicationScope.flatData.sources[ prefSources ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="srcs" items="${ applicationScope.flatData.sources }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:if test="${ prefSources == srcs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ srcs.key == source }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ srcs.key }" ${ sel }>${ srcs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="source" value="${ sessionScope.visit.preferences.source }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultProjSub || updateMode }">
|
||||
<p>
|
||||
Project/Subject:
|
||||
<select name="projectSubject" style="width: 80%;">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ 0 == projectSubject }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='0' ${sel}>none</option>" escapeXml="false" />
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ projectSubject == prefProjSub }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ prefProjSub }" ${ sel }>${ applicationScope.flatData.projectSubjects[ prefProjSub ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
<option disabled="disabled" value="">----------------</option>
|
||||
<c:forEach var="projSubs" items="${ applicationScope.flatData.projectSubjects }">
|
||||
<c:set var="printOption" value="${ true }" />
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:if test="${ prefProjSub == projSubs.key }">
|
||||
<c:set var="printOption" value="${ false }" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:if test="${ printOption }">
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ projSubs.key == projectSubject }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value='<option value="${ projSubs.key }" ${ sel }>${ projSubs.value }</option>' escapeXml="false" />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="projectSubject" value="${ sessionScope.visit.preferences.projectSubject }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ ! sessionScope.visit.preferences.useDefaultNote || updateMode }">
|
||||
|
||||
<p>
|
||||
<c:out value="${ originalNote }" escapeXml="false"/>
|
||||
Metadata Note: <br />
|
||||
<textarea name="note" rows="8" cols="90"><c:out value='${ note }' escapeXml='false' /></textarea> <br />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value='<input type="hidden" name="note" value="${ sessionScope.visit.preferences.note }" />' escapeXml='false' />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
|
143
webroot/jsp/metaPrefsForm.jsp
Normal file
|
@ -0,0 +1,143 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
<!--metaPrefsForm.jsp-->
|
||||
|
||||
<div id="label"><p>Lex the Dictionary Server: Manage Input Session Form</p></div><!--END label-->
|
||||
|
||||
<div id="message">
|
||||
<p>
|
||||
Message:
|
||||
<c:if test="${ ! empty message }">
|
||||
<c:out value="${ message }" />
|
||||
</c:if>
|
||||
</p>
|
||||
</div><!--END message-->
|
||||
|
||||
<div id="columnSingle">
|
||||
<form action="/lex/action" method="post">
|
||||
<p>
|
||||
In the metadata categories below, please choose sets of options that you use frequently.
|
||||
Use the <em>ctrl-key</em> (<em>command-key</em> on Mac) to select multiple options.
|
||||
Your choices from this page will appear at the top of every dropdown menu
|
||||
in the metadata section of every form in this application.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Languages: <br />
|
||||
<select name="languages" multiple="multiple" size="10">
|
||||
<optgroup label="Preferred Languages">
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:out value='<option value="${ prefLangs }" selected="selected">${ applicationScope.flatData.languages[ prefLangs ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
<optgroup label="All Languages">
|
||||
<c:forEach var="langs" items="${ applicationScope.flatData.languages }">
|
||||
<c:set var="disabled" value="" />
|
||||
<c:forEach var="prefLangs" items="${ sessionScope.visit.preferences.languageSet }">
|
||||
<c:if test="${ prefLangs == langs.key }">
|
||||
<c:set var="disabled" value='disabled="disabled"' />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:out value='<option value="${ langs.key }" ${disabled}>${ langs.value }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
Dialects: <br />
|
||||
<select name="dialects" multiple="multiple" size="10">
|
||||
<optgroup label="Preferred Dialects">
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:out value='<option value="${ prefDials }" selected="selected">${ applicationScope.flatData.majorDialectFamilies[ prefDials ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
<optgroup label="All Dialects">
|
||||
<c:forEach var="dials" items="${ applicationScope.flatData.majorDialectFamilies }">
|
||||
<c:set var="disabled" value="" />
|
||||
<c:forEach var="prefDials" items="${ sessionScope.visit.preferences.dialectSet }">
|
||||
<c:if test="${ prefDials == dials.key }">
|
||||
<c:set var="disabled" value='disabled="disabled"' />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:out value='<option value="${ dials.key }" ${disabled}>${ dials.value }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
Sources: <br />
|
||||
<select name="sources" multiple="multiple" size="10">
|
||||
<optgroup label="Preferred Sources">
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:out value='<option value="${ prefSources }" selected="selected">${ applicationScope.flatData.sources[ prefSources ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
<optgroup label="All Sources">
|
||||
<c:forEach var="srcs" items="${ applicationScope.flatData.sources }">
|
||||
<c:set var="disabled" value="" />
|
||||
<c:forEach var="prefSources" items="${ sessionScope.visit.preferences.sourceSet }">
|
||||
<c:if test="${ prefSources == srcs.key }">
|
||||
<c:set var="disabled" value='disabled="disabled"' />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:out value='<option value="${ srcs.key }" ${disabled}>${ srcs.value }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Project/Subject: <br />
|
||||
<select name="projectSubjects" multiple="multiple" size="10">
|
||||
<optgroup label="Preferred Project/Subjects">
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:out value='<option value="${ prefProjSub }" selected="selected">${ applicationScope.flatData.projectSubjects[ prefProjSub ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
<optgroup label="All Project/Subjects">
|
||||
<c:forEach var="projSubs" items="${ applicationScope.flatData.projectSubjects }">
|
||||
<c:set var="disabled" value="" />
|
||||
<c:forEach var="prefProjSub" items="${ sessionScope.visit.preferences.projectSubjectSet }">
|
||||
<c:if test="${ prefProjSub == projSubs.key }">
|
||||
<c:set var="disabled" value='disabled="disabled"' />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:out value='<option value="${ projSubs.key }" ${disabled}>${ projSubs.value }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
Scripts: <br />
|
||||
<select name="scripts" multiple="multiple" size="10">
|
||||
<optgroup label="Preferred Scripts">
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:out value='<option value="${ prefScripts }" selected="selected">${ applicationScope.flatData.scripts[ prefScripts ] }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
<optgroup label="All Scripts">
|
||||
<c:forEach var="scripts" items="${ applicationScope.flatData.scripts }">
|
||||
<c:set var="disabled" value="" />
|
||||
<c:forEach var="prefScripts" items="${ sessionScope.visit.preferences.scriptSet }">
|
||||
<c:if test="${ prefScripts == scripts.key }">
|
||||
<c:set var="disabled" value='disabled="disabled"' />
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:out value='<option value="${ scripts.key }" ${disabled}>${ scripts.value }</option>' escapeXml="false" />
|
||||
</c:forEach>
|
||||
</optgroup>
|
||||
</select>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="setMetaPrefs" />
|
||||
<input type="submit" value="Submit Changes to the input session" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
</div><!--END columnSingle-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false" />
|
||||
|
61
webroot/jsp/modelSentenceForm.jsf
Normal file
|
@ -0,0 +1,61 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--modelSentenceForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="modelSentence" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
<%-- <c:set var="precedence" value="1" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="modelSentence" value="${ component.modelSentence }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
<%-- <c:set var="precedence" value="${ component.precedence }" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="modelSentence" value="ERROR" />
|
||||
<%-- <c:set var="precedence" value="ERROR" /> --%>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:set var="translateMode" value="${ false }" />
|
||||
<c:if test="${ component.translationOf > 0 }">
|
||||
<c:set var="translateMode" value="${ true }" />
|
||||
<c:set var="originalModelSentence"
|
||||
value="Original Model Sentence: ${ original.modelSentence } <br /> Translation " />
|
||||
</c:if>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<c:if test="${ translateMode }">
|
||||
<c:out value='<input type="hidden" name="translationOf" value="${ component.translationOf }" />' escapeXml="false" />
|
||||
</c:if>
|
||||
|
||||
<input type="hidden" name="comp" value="modelSentence" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
<c:out value="${ originalModelSentence }" escapeXml='false' />
|
||||
Model Sentence: <br />
|
||||
<textarea name="modelSentence" rows="8" cols="90"><c:out value='${ modelSentence }' /></textarea>
|
||||
<br />
|
||||
|
||||
<%-- Precedence: <c:out value='<input type="text" value="${ precedence }" name="precedence" size="3"/>' escapeXml='false' /> --%> <br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Model Sentence" />
|
||||
</p>
|
||||
</form>
|
26
webroot/jsp/navLinks.jsf
Normal file
|
@ -0,0 +1,26 @@
|
|||
<%@ page %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<ul class="navLinks">
|
||||
<li>
|
||||
<a href="http://iris.lib.virginia.edu/tibet/reference/dictionary.html">Dictionary Home</a> |
|
||||
</li>
|
||||
<li>
|
||||
<a href="/lex/action?cmd=menu" title="Main Menu">Main Menu</a> |
|
||||
</li>
|
||||
<li>
|
||||
<a href="/lex/action?cmd=search" title="Advanced Search">Advanced Search</a>
|
||||
</li>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${ sessionScope.visit.user.guest || empty sessionScope.visit }">
|
||||
<li>
|
||||
| <a href="/lex/login.jsp">Login</a>
|
||||
</li>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<li>
|
||||
| <a href="/lex/logout.jsp">Logout</a>
|
||||
</li>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</ul>
|
74
webroot/jsp/passageForm.jsf
Normal file
|
@ -0,0 +1,74 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--passageForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="literarySource" value="1" />
|
||||
<c:set var="spelling" value="" />
|
||||
<c:set var="pagination" value="" />
|
||||
<c:set var="passage" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="literarySource" value="${ component.literarySource }" />
|
||||
<c:set var="spelling" value="${ component.spelling }" />
|
||||
<c:set var="pagination" value="${ component.pagination }" />
|
||||
<c:set var="passage" value="${ component.passage }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="literarySource" value="ERROR" />
|
||||
<c:set var="spelling" value="ERROR" />
|
||||
<c:set var="pagination" value="ERROR" />
|
||||
<c:set var="passage" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:set var="translateMode" value="${ false }" />
|
||||
<c:if test="${ component.translationOf > 0 }">
|
||||
<c:set var="translateMode" value="${ true }" />
|
||||
<c:set var="originalPagination" value="Original Pagination: ${ original.pagination } <br /> Translation " />
|
||||
<c:set var="originalPassage" value="Original Passage: ${ original.passage } <br /> Translation " />
|
||||
<%-- <c:set var="pagination" value="" />
|
||||
<c:set var="passage" value="" /> --%>
|
||||
</c:if>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<c:if test="${ translateMode }">
|
||||
<c:out value='<input type="hidden" name="translationOf" value="${ component.translationOf }" />' escapeXml="false" />
|
||||
</c:if>
|
||||
|
||||
<input type="hidden" name="comp" value="passage" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
LiterarySource: <c:out value='<input type="text" value="${ literarySource }" name="literarySource" size="50" />' escapeXml='false' /> <br />
|
||||
|
||||
Spelling: <c:out value='<input type="text" value="${ spelling }" name="spelling" size="50" />' escapeXml='false' /> <br />
|
||||
|
||||
<c:out value="${ originalPagination } " escapeXml='false' />
|
||||
Pagination: <br />
|
||||
<c:out value='<input type="text" name="pagination" cols="90" value="${ pagination }"/>' escapeXml="false"/><br />
|
||||
|
||||
<c:out value="${ originalPassage }" escapeXml='false' />
|
||||
Passage: <br />
|
||||
<textarea name="passage" rows="8" cols="90"><c:out value='${ passage }' /></textarea> <br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Passage" />
|
||||
</p>
|
||||
</form>
|
62
webroot/jsp/pronunciationForm.jsf
Normal file
|
@ -0,0 +1,62 @@
|
|||
<%-- <%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %> --%>
|
||||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %><%@ page import="java.util.HashMap" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<%-- <%@ taglib prefix="input" uri="http://jakarta.apache.org/taglibs/input-1.0" %> --%>
|
||||
<!--phonologyForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="phonetics" value="" />
|
||||
<c:set var="phoneticsType" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="phonetics" value="${ component.phonetics }" />
|
||||
<c:set var="phoneticsType" value="${ component.phoneticsType }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="phonetics" value="ERROR" />
|
||||
<c:set var="phoneticsType" value="ERROR" />
|
||||
<c:set var="metaId" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="pronunciation" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Phonetic Rendering: <br />
|
||||
<textarea name="phonetics" rows="8" cols="90"><c:out value='${ phonetics }' escapeXml='false' /></textarea>
|
||||
<br />
|
||||
Type of Phonetics:
|
||||
<select name="phoneticsType">
|
||||
<c:out value="<option value='0'>none</option>" escapeXml="false" />
|
||||
<c:forEach var="phonTypes" items="${ applicationScope.flatData.phoneticsTypes }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:out value=" '${ phonTypes.key }' '${ phoneticsType }' " escapeXml="false" />
|
||||
<c:if test="${ phonTypes.key == phoneticsType }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ phonTypes.key }' ${sel}>${ phonTypes.value }</option>" escapeXml="false" /> <br />
|
||||
</c:forEach>
|
||||
</select>
|
||||
<br />
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Pronunciation" />
|
||||
</p>
|
||||
</form>
|
54
webroot/jsp/registerForm.jsf
Normal file
|
@ -0,0 +1,54 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--registerForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="register" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
<%-- <c:set var="precedence" value="1" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="register" value="${ component.register }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
<%-- <c:set var="precedence" value="${ component.precedence }" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="register" value="ERROR" />
|
||||
<%-- <c:set var="precedence" value="ERROR" /> --%>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="speechRegister" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Register:
|
||||
<select name="register">
|
||||
<c:forEach var="reg" items="${ applicationScope.flatData.registers }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ reg.key == register }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ reg.key }' ${sel}>${ reg.value }</option>" escapeXml="false" /> <br />
|
||||
</c:forEach>
|
||||
</select>
|
||||
<br />
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Register" />
|
||||
</p>
|
||||
</form>
|
63
webroot/jsp/relatedTermForm.jsf
Normal file
|
@ -0,0 +1,63 @@
|
|||
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<!--relatedTermForm.jsf-->
|
||||
<c:out value='<a name="${ component }" ></a>' escapeXml="false" />
|
||||
<c:choose>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'insert'}">
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="insert" />
|
||||
<c:set var="relatedTerm" value="" />
|
||||
<c:set var="relatedTermType" value="" />
|
||||
<c:set var="metaId" value="" />
|
||||
<%-- <c:set var="precedence" value="1" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:when test="${ ! empty param.formMode && param.formMode == 'update'}">
|
||||
<c:set var="updateMode" value="${ true }" />
|
||||
<c:set var="newCmd" value="update" />
|
||||
<c:set var="relatedTerm" value="${ component.relatedTerm }" />
|
||||
<c:set var="relatedTermType" value="${ component.relatedTermType }" />
|
||||
<c:set var="metaId" value="${ component.metaId }" />
|
||||
<%-- <c:set var="precedence" value="${ component.precedence }" /> --%>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var="updateMode" value="${ false }" />
|
||||
<c:set var="newCmd" value="" />
|
||||
<c:set var="relatedTerm" value="ERROR" />
|
||||
<c:set var="relatedTermType" value="ERROR" />
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form id="newCompForm" action="/lex/action" method="post">
|
||||
<p>
|
||||
<input type="hidden" name="comp" value="relatedTerm" />
|
||||
<c:if test="${ updateMode }">
|
||||
<c:out value='<input type="hidden" name="metaId" value="${metaId}" />' escapeXml="false" />
|
||||
</c:if>
|
||||
<c:out value='<input type="hidden" name="cmd" value="${newCmd}" />' escapeXml='false' />
|
||||
|
||||
Related Term: <br />
|
||||
<textarea name="relatedTerm" rows="8" cols="90"><c:out value='${ relatedTerm }' /></textarea>
|
||||
<br />
|
||||
|
||||
|
||||
Related Term Type:
|
||||
<select name="relatedTermType">
|
||||
<c:forEach var="relTermTypes" items="${ applicationScope.flatData.relatedTermTypes }" >
|
||||
<c:set var="sel" value="" />
|
||||
<c:if test="${ relTermTypes.key == relatedTermType }">
|
||||
<c:set var="sel" value="selected='selected'" />
|
||||
</c:if>
|
||||
<c:out value="<option value='${ relTermTypes.key }' ${sel}>${ relTermTypes.value }</option>" escapeXml="false" /> <br />
|
||||
</c:forEach>
|
||||
</select>
|
||||
<br />
|
||||
<%-- Precedence: <c:out value='<input type="text" value="${ precedence }" name="precedence" size="3"/>' escapeXml='false' /> --%> <br />
|
||||
|
||||
<jsp:include page="metaForm.jsf" />
|
||||
|
||||
<input type="submit" value="Submit Related Term" />
|
||||
</p>
|
||||
</form>
|
53
webroot/jsp/search.jsp
Normal file
|
@ -0,0 +1,53 @@
|
|||
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
<jsp:include page="header.jsf" flush="false" />
|
||||
<!--menu.jsp-->
|
||||
<c:set var="editMode" value="${ false }" />
|
||||
<c:if test="${ ! sessionScope.visit.user.guest }">
|
||||
<c:set var="editMode" value="${ true }" />
|
||||
</c:if>
|
||||
|
||||
<div id="columnLeft">
|
||||
|
||||
<div class="highlightBox">
|
||||
<form action="/lex/action" method="get" >
|
||||
<h2>Find a term</h2>
|
||||
<p>
|
||||
<input type="hidden" name="cmd" value="find" />
|
||||
<input type="hidden" name="comp" value="term" />
|
||||
Term: <input type="text" name="term" id="term" size="20" value="" /> <br />
|
||||
Find:
|
||||
|
||||
<select name="findMode">
|
||||
<option value="exact">Exact match</option>
|
||||
<option value="startsWith">At beginning of term</option>
|
||||
<option value="anywhere">Anywhere in term</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Find Term"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div><!--END COLUMN LEFT-->
|
||||
|
||||
<div id="columnCenter">
|
||||
<jsp:include page="navLinks.jsf" flush="false"/>
|
||||
<h1>THDL Tibetan Collaborative Dictionaries: Advanced Search</h1>
|
||||
<p>
|
||||
<span class="label">Last Update</span>: <c:out value="${ applicationScope.global.lastUpdate }"/>
|
||||
</p>
|
||||
<p>
|
||||
This page is under Construction
|
||||
</p>
|
||||
<c:if test="${ ! empty message }">
|
||||
<p id="message">
|
||||
<c:out value="${ message }" />
|
||||
</p>
|
||||
</c:if>
|
||||
|
||||
</div><!--END COLUMN CENTER-->
|
||||
|
||||
<jsp:include page="footer.jsf" flush="false" />
|
||||
|