I'm in the middle of figuring how to get the contentType and charset through the paddlewheel successfully. It's working in /lex/test/ but not after the jsps get their grubby hands all over the request. So this is to update mayor so I can read the log files from outside users.

This commit is contained in:
travismccauley 2003-10-27 21:05:08 +00:00
parent 64a5e8c47e
commit 1315e8d7ba
35 changed files with 155 additions and 115 deletions

View File

@ -98,6 +98,11 @@
<param-value>/index.jsp</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>test</servlet-name>
<servlet-class>org.thdl.lex.HibernateTestServlet</servlet-class>
</servlet>
<!--SERVLET MAPPPINGS-->
@ -121,7 +126,13 @@
<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>

View File

@ -1,27 +1,27 @@
package org.thdl.lex;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import java.util.*;
import javax.servlet.ServletException;
// import net.sf.hibernate.tool.hbm2ddl.*;
import org.thdl.lex.component.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// import org.thdl.lex.component.peers.*;
import net.sf.hibernate.*;
import net.sf.hibernate.cfg.*;
// import net.sf.hibernate.tool.hbm2ddl.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletException;
import java.sql.*;
import java.util.*;
import java.io.IOException;
import java.io.PrintWriter;
import org.thdl.lex.component.*;
/**
* Description of the Class
*
*@author travis
*@created October 1, 2003
* @author travis
* @created October 1, 2003
*/
public class HibernateTestServlet
extends HttpServlet
@ -35,8 +35,8 @@ public class HibernateTestServlet
/**
* Sets the sessionFactory attribute of the HibernateTestServlet object
*
*@param sessionFactory The new sessionFactory value
*@since
* @param sessionFactory The new sessionFactory value
* @since
*/
public void setSessionFactory( SessionFactory sessionFactory )
{
@ -47,8 +47,8 @@ public class HibernateTestServlet
/**
* Sets the session attribute of the HibernateTestServlet object
*
*@param session The new session value
*@since
* @param session The new session value
* @since
*/
public void setSession( Session session )
{
@ -59,8 +59,8 @@ public class HibernateTestServlet
/**
* Sets the transaction attribute of the HibernateTestServlet object
*
*@param transaction The new transaction value
*@since
* @param transaction The new transaction value
* @since
*/
public void setTransaction( Transaction transaction )
{
@ -71,8 +71,8 @@ public class HibernateTestServlet
/**
* Gets the sessionFactory attribute of the HibernateTestServlet object
*
*@return The sessionFactory value
*@since
* @return The sessionFactory value
* @since
*/
public SessionFactory getSessionFactory()
{
@ -83,8 +83,8 @@ public class HibernateTestServlet
/**
* Gets the session attribute of the HibernateTestServlet object
*
*@return The session value
*@since
* @return The session value
* @since
*/
public Session getSession()
{
@ -95,8 +95,8 @@ public class HibernateTestServlet
/**
* Gets the transaction attribute of the HibernateTestServlet object
*
*@return The transaction value
*@since
* @return The transaction value
* @since
*/
public Transaction getTransaction()
{
@ -107,11 +107,11 @@ public class HibernateTestServlet
/**
* Description of the Method
*
*@param request Description of Parameter
*@param response Description of Parameter
*@exception ServletException Description of Exception
*@exception IOException Description of Exception
*@since
* @param request Description of Parameter
* @param response Description of Parameter
* @exception ServletException Description of Exception
* @exception IOException Description of Exception
* @since
*/
public void doGet( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException
@ -121,15 +121,17 @@ public class HibernateTestServlet
{
initHibernate();
response.setContentType( "text/html" );
//response.setContentType( "text/html" );
response.setContentType( "text/html;charset=UTF-8;" );
request.setCharacterEncoding( "UTF-8" );
PrintWriter out = response.getWriter();
out.println( "<html><body>" );
beginTransaction();
processMods( out );
//testQuery( out );
testQuery( out );
endTransaction( false );
LexLogger.logRequestState( request );
LexLogger.logResponseState( response );
out.println( "</body></html>" );
}
@ -165,8 +167,8 @@ public class HibernateTestServlet
/**
* Description of the Method
*
*@exception HibernateException Description of Exception
*@since
* @exception HibernateException Description of Exception
* @since
*/
private void initHibernate()
throws HibernateException
@ -180,8 +182,8 @@ public class HibernateTestServlet
/**
* Description of the Method
*
*@exception HibernateException Description of Exception
*@since
* @exception HibernateException Description of Exception
* @since
*/
private void beginTransaction()
throws HibernateException
@ -194,9 +196,9 @@ public class HibernateTestServlet
/**
* Description of the Method
*
*@param commit Description of Parameter
*@exception HibernateException Description of Exception
*@since
* @param commit Description of Parameter
* @exception HibernateException Description of Exception
* @since
*/
private void endTransaction( boolean commit )
throws HibernateException
@ -215,47 +217,25 @@ public class HibernateTestServlet
}
/**
* Description of the Method
*
*@param out Description of Parameter
*@exception SQLException Description of Exception
*@exception HibernateException Description of Exception
*@since
*/
public void processMods( PrintWriter out ) throws SQLException, HibernateException
{
String queryString = "FROM org.thdl.lex.component.LexComponent";
Query query = getSession().createQuery( queryString );
out.println( "Starting..." );
for ( Iterator it = query.iterate(); it.hasNext(); )
{
ILexComponent lc = (ILexComponent) it.next();
out.println( lc.getMetaId() + " </br/> " );
}
}
/**
* A unit test for JUnit
*
*@param out Description of Parameter
*@exception SQLException Description of Exception
*@exception HibernateException Description of Exception
*@since
* @param out Description of Parameter
* @exception SQLException Description of Exception
* @exception HibernateException Description of Exception
* @since
*/
public void testQuery( PrintWriter out )
throws SQLException, HibernateException
{
String queryString = "FROM org.thdl.lex.component.Term as term WHERE term.term = :term";
String queryString = "FROM org.thdl.lex.component.Pronunciation";
Query query = getSession().createQuery( queryString );
ITerm term = new Term();
term.setTerm( "thos pa" );
query.setProperties( term );
for ( Iterator it = query.iterate(); it.hasNext(); )
{
out.println( it.next() );
String s = ( (IPronunciation) it.next() ).getPhonetics();
out.println( s + "<br/>" );
LexLogger.debug( "Diacritics Test: " + s );
}
}
}

View File

@ -90,7 +90,9 @@ public class LexActionServlet extends HttpServlet
*/
public void service( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
{
res.setContentType( "text/html; charset=UTF-8" );
res.setContentType( "text/html; charset=UTF-8;" );
req.setCharacterEncoding( "UTF-8" );
/*
LexLogger.debug( "Checking Request state at start of LexActionServlet.service()" );
LexLogger.logRequestState( req );

View File

@ -176,6 +176,9 @@ public class LexComponentFilter implements Filter
}
chain.doFilter( request, response );
HttpServletResponse resp = (HttpServletResponse) response;
resp.setContentType( "text/html; charset=UTF-8;" );
LexLogger.logResponseState( resp );
try
{
LexComponentRepository.cleanup();

View File

@ -30,21 +30,55 @@ public class LexLogger
{
Iterator it;
LOGGER.debug( "authType: " + req.getAuthType() );
LOGGER.debug( "characterEncoding: " + req.getCharacterEncoding() );
LOGGER.debug( "contentLength: " + req.getContentLength() );
LOGGER.debug( "contentType: " + req.getContentType() );
LOGGER.debug( "method: " + req.getMethod() );
LOGGER.debug( "pathInfo: " + req.getPathInfo() );
LOGGER.debug( "pathTranslated: " + req.getPathTranslated() );
LOGGER.debug( "protocol: " + req.getProtocol() );
LOGGER.debug( "queryString: " + req.getQueryString() );
LOGGER.debug( "remoteAddr: " + req.getRemoteAddr() );
LOGGER.debug( "remoteHost: " + req.getRemoteHost() );
LOGGER.debug( "remoteUser: " + req.getRemoteUser() );
LOGGER.debug( "requestedSessionId: " + req.getRequestedSessionId() );
LOGGER.debug( "requestedSessionIdFromCookie: " + req.isRequestedSessionIdFromCookie() );
LOGGER.debug( "requestedSessionIdFromURL: " + req.isRequestedSessionIdFromURL() );
LOGGER.debug( "requestedSessionIdValid: " + req.isRequestedSessionIdValid() );
LOGGER.debug( "requestURI: " + req.getRequestURI() );
LOGGER.debug( "scheme: " + req.getScheme() );
LOGGER.debug( "serverName: " + req.getServerName() );
LOGGER.debug( "serverPort: " + req.getServerPort() );
LOGGER.debug( "contextPath: " + req.getContextPath() );
LOGGER.debug( "servletPath: " + req.getServletPath() );
Enumeration enum = req.getParameterNames();
while ( enum.hasMoreElements() )
{
String parm = (String) enum.nextElement();
LOGGER.debug( "Request Parameter " + parm + " = '" + req.getParameter( parm ) + "'" );
LOGGER.debug( "Request Parameter: " + parm + " = '" + req.getParameter( parm ) + "'" );
}
enum = req.getAttributeNames();
while ( enum.hasMoreElements() )
{
String att = (String) enum.nextElement();
LOGGER.debug( "Request Attribute " + att + " = " + req.getAttribute( att ) );
LOGGER.debug( "Request Attribute: " + att + " =: " + req.getAttribute( att ) );
}
}
/**
* Description of the Method
*
* @param resp Description of the Parameter
*/
public static void logResponseState( HttpServletResponse resp )
{
LOGGER.debug( "RESPONSE STATE" );
LOGGER.debug( "characterEncoding: " + resp.getCharacterEncoding() );
}
/**
* Description of the Method
*
@ -63,7 +97,7 @@ public class LexLogger
while ( enum.hasMoreElements() )
{
String att = (String) enum.nextElement();
LOGGER.debug( "Session Attribute " + att + " = " + ses.getAttribute( att ) );
LOGGER.debug( "Session Attribute: " + att + " =: " + ses.getAttribute( att ) );
}
if ( null == visit )
@ -90,7 +124,7 @@ public class LexLogger
String att = (String) enum.nextElement();
if ( !EXCLUDED_PARAMS.contains( att ) )
{
LOGGER.debug( "Context Attribute " + att + " = " + context.getAttribute( att ) );
LOGGER.debug( "Context Attribute: " + att + " =: " + context.getAttribute( att ) );
}
}
debugComponent( context.getAttribute( LexConstants.GLOBAL_CONTEXT_ATTR ) );
@ -150,13 +184,13 @@ public class LexLogger
{
try
{
LOGGER.debug( "Describing: " + component );
LOGGER.debug( "Describing:: " + component );
String label = component instanceof ILexComponent ? ( (ILexComponent) component ).getLabel() : component.toString();
Iterator it = BeanUtils.describe( component ).entrySet().iterator();
while ( it.hasNext() )
{
Map.Entry entry = (Map.Entry) it.next();
LOGGER.debug( label + " property: " + entry.getKey() + " = '" + entry.getValue() + "'" );
LOGGER.debug( label + " property:: " + entry.getKey() + " = '" + entry.getValue() + "'" );
}
}
catch ( Exception e )
@ -164,7 +198,7 @@ public class LexLogger
StringWriter writer = new StringWriter();
e.printStackTrace( new PrintWriter( writer ) );
String stackTrace = writer.getBuffer().toString();
LOGGER.debug( "LexLogger caught an Exception: " + stackTrace );
LOGGER.debug( "LexLogger caught an Exception:: " + stackTrace );
}
}
}

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="encyclopediaArticle" value="${ sessionScope.visit.helper.component }"/>

View File

@ -1,8 +1,10 @@
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" contentType="text/html; charset=UTF-8"%>
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" pageEncoding="UTF-8" contentType="text/html"%>
<%@ 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 }">

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,5 +1,4 @@
<%-- <%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>--%>
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
<%@ 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" />

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="function" value="${ sessionScope.visit.helper.component }"/>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,5 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ 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 }'/>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:if test="${ sessionScope.visit.helper.showNotes }">

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="spelling" value="${ sessionScope.visit.helper.component }"/>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTerm.jsf-->

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTransitionalData.jsf-->

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false"%>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTree.jsf-->

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" %>
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" buffer="512kb" autoFlush="false" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTreeToc.jsf-->

View File

@ -1,5 +1,5 @@
<%@ page import="java.io.PrintWriter,java.io.StringWriter,org.thdl.lex.*,org.thdl.lex.component.*" isErrorPage="true" %>
<%@ taglib prefix="req" uri="http://jakarta.apache.org/taglibs/request-1.0" %>
<%@ 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">
@ -45,8 +45,6 @@ The message appears below.<br />
{ LexComponent lab = (LexComponent) request.getAttribute("component");
%>
<b> Label: </b> <i> <%= lab %> </i><br /><br />
<%-- <b> Sql String: </b> <i> <%= lab.getSqlString() %> </i>
--%>
<% } %> <br /><br />
@ -57,7 +55,10 @@ The message appears below.<br />
%>
<pre>
<%= stackTrace %>
</pre>
</pre>
</p>
</div>

View File

@ -1,4 +1,4 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
<%@ page import="org.thdl.lex.LexLogger" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix = "req" uri = "http://jakarta.apache.org/taglibs/request-1.0" %>
@ -25,3 +25,5 @@
</body>
</html>
<% LexLogger.debug( "Footer.jsf has finished rendering." ); %>

View File

@ -1,3 +1,5 @@
<%@ 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>

View File

@ -1,10 +1,10 @@
<%@ page import="org.thdl.lex.*,org.thdl.lex.component.*" %>
<%@ 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" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type='text/javascript' src='/lex/js/lex.js'></script>

View File

@ -1,4 +1,4 @@
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
<%@ 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" />

View File

@ -1,5 +1,6 @@
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
<%@ 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-->

View File

@ -1,5 +1,6 @@
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
<%@ 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-->

View File

@ -1,4 +1,5 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ 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> |

View File

@ -1,4 +1,4 @@
<%@ page buffer="512kb" autoFlush="false" import="org.thdl.lex.*,org.thdl.lex.component.*" errorPage="/jsp/error.jsp" %>
<%@ 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-->