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> <param-value>/index.jsp</param-value>
</init-param> </init-param>
</servlet> </servlet>
<servlet>
<servlet-name>test</servlet-name>
<servlet-class>org.thdl.lex.HibernateTestServlet</servlet-class>
</servlet>
<!--SERVLET MAPPPINGS--> <!--SERVLET MAPPPINGS-->
@ -121,7 +126,13 @@
<url-pattern>/logout</url-pattern> <url-pattern>/logout</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
<!--TAGLIBS--> <!--TAGLIBS-->
<!--RELEASE TAGLIBS <!--RELEASE TAGLIBS
<taglib> <taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>

View file

@ -1,27 +1,27 @@
package org.thdl.lex; 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 org.thdl.lex.component.peers.*;
import net.sf.hibernate.*; import net.sf.hibernate.*;
import net.sf.hibernate.cfg.*; import net.sf.hibernate.cfg.*;
// import net.sf.hibernate.tool.hbm2ddl.*;
import javax.servlet.http.HttpServlet; import org.thdl.lex.component.*;
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;
/** /**
* Description of the Class * Description of the Class
* *
*@author travis * @author travis
*@created October 1, 2003 * @created October 1, 2003
*/ */
public class HibernateTestServlet public class HibernateTestServlet
extends HttpServlet extends HttpServlet
@ -35,8 +35,8 @@ public class HibernateTestServlet
/** /**
* Sets the sessionFactory attribute of the HibernateTestServlet object * Sets the sessionFactory attribute of the HibernateTestServlet object
* *
*@param sessionFactory The new sessionFactory value * @param sessionFactory The new sessionFactory value
*@since * @since
*/ */
public void setSessionFactory( SessionFactory sessionFactory ) public void setSessionFactory( SessionFactory sessionFactory )
{ {
@ -47,8 +47,8 @@ public class HibernateTestServlet
/** /**
* Sets the session attribute of the HibernateTestServlet object * Sets the session attribute of the HibernateTestServlet object
* *
*@param session The new session value * @param session The new session value
*@since * @since
*/ */
public void setSession( Session session ) public void setSession( Session session )
{ {
@ -59,8 +59,8 @@ public class HibernateTestServlet
/** /**
* Sets the transaction attribute of the HibernateTestServlet object * Sets the transaction attribute of the HibernateTestServlet object
* *
*@param transaction The new transaction value * @param transaction The new transaction value
*@since * @since
*/ */
public void setTransaction( Transaction transaction ) public void setTransaction( Transaction transaction )
{ {
@ -71,8 +71,8 @@ public class HibernateTestServlet
/** /**
* Gets the sessionFactory attribute of the HibernateTestServlet object * Gets the sessionFactory attribute of the HibernateTestServlet object
* *
*@return The sessionFactory value * @return The sessionFactory value
*@since * @since
*/ */
public SessionFactory getSessionFactory() public SessionFactory getSessionFactory()
{ {
@ -83,8 +83,8 @@ public class HibernateTestServlet
/** /**
* Gets the session attribute of the HibernateTestServlet object * Gets the session attribute of the HibernateTestServlet object
* *
*@return The session value * @return The session value
*@since * @since
*/ */
public Session getSession() public Session getSession()
{ {
@ -95,8 +95,8 @@ public class HibernateTestServlet
/** /**
* Gets the transaction attribute of the HibernateTestServlet object * Gets the transaction attribute of the HibernateTestServlet object
* *
*@return The transaction value * @return The transaction value
*@since * @since
*/ */
public Transaction getTransaction() public Transaction getTransaction()
{ {
@ -107,11 +107,11 @@ public class HibernateTestServlet
/** /**
* Description of the Method * Description of the Method
* *
*@param request Description of Parameter * @param request Description of Parameter
*@param response Description of Parameter * @param response Description of Parameter
*@exception ServletException Description of Exception * @exception ServletException Description of Exception
*@exception IOException Description of Exception * @exception IOException Description of Exception
*@since * @since
*/ */
public void doGet( HttpServletRequest request, HttpServletResponse response ) public void doGet( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException throws ServletException, IOException
@ -121,15 +121,17 @@ public class HibernateTestServlet
{ {
initHibernate(); initHibernate();
response.setContentType( "text/html" ); //response.setContentType( "text/html" );
response.setContentType( "text/html;charset=UTF-8;" );
request.setCharacterEncoding( "UTF-8" );
PrintWriter out = response.getWriter(); PrintWriter out = response.getWriter();
out.println( "<html><body>" ); out.println( "<html><body>" );
beginTransaction(); beginTransaction();
processMods( out ); testQuery( out );
//testQuery( out );
endTransaction( false ); endTransaction( false );
LexLogger.logRequestState( request );
LexLogger.logResponseState( response );
out.println( "</body></html>" ); out.println( "</body></html>" );
} }
@ -165,8 +167,8 @@ public class HibernateTestServlet
/** /**
* Description of the Method * Description of the Method
* *
*@exception HibernateException Description of Exception * @exception HibernateException Description of Exception
*@since * @since
*/ */
private void initHibernate() private void initHibernate()
throws HibernateException throws HibernateException
@ -180,8 +182,8 @@ public class HibernateTestServlet
/** /**
* Description of the Method * Description of the Method
* *
*@exception HibernateException Description of Exception * @exception HibernateException Description of Exception
*@since * @since
*/ */
private void beginTransaction() private void beginTransaction()
throws HibernateException throws HibernateException
@ -194,9 +196,9 @@ public class HibernateTestServlet
/** /**
* Description of the Method * Description of the Method
* *
*@param commit Description of Parameter * @param commit Description of Parameter
*@exception HibernateException Description of Exception * @exception HibernateException Description of Exception
*@since * @since
*/ */
private void endTransaction( boolean commit ) private void endTransaction( boolean commit )
throws HibernateException 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 * A unit test for JUnit
* *
*@param out Description of Parameter * @param out Description of Parameter
*@exception SQLException Description of Exception * @exception SQLException Description of Exception
*@exception HibernateException Description of Exception * @exception HibernateException Description of Exception
*@since * @since
*/ */
public void testQuery( PrintWriter out ) public void testQuery( PrintWriter out )
throws SQLException, HibernateException 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 ); Query query = getSession().createQuery( queryString );
ITerm term = new Term();
term.setTerm( "thos pa" );
query.setProperties( term );
for ( Iterator it = query.iterate(); it.hasNext(); ) 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 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.debug( "Checking Request state at start of LexActionServlet.service()" );
LexLogger.logRequestState( req ); LexLogger.logRequestState( req );

View file

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

View file

@ -30,21 +30,55 @@ public class LexLogger
{ {
Iterator it; 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(); Enumeration enum = req.getParameterNames();
while ( enum.hasMoreElements() ) while ( enum.hasMoreElements() )
{ {
String parm = (String) enum.nextElement(); String parm = (String) enum.nextElement();
LOGGER.debug( "Request Parameter " + parm + " = '" + req.getParameter( parm ) + "'" ); LOGGER.debug( "Request Parameter: " + parm + " = '" + req.getParameter( parm ) + "'" );
} }
enum = req.getAttributeNames(); enum = req.getAttributeNames();
while ( enum.hasMoreElements() ) while ( enum.hasMoreElements() )
{ {
String att = (String) enum.nextElement(); 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 * Description of the Method
* *
@ -63,7 +97,7 @@ public class LexLogger
while ( enum.hasMoreElements() ) while ( enum.hasMoreElements() )
{ {
String att = (String) enum.nextElement(); String att = (String) enum.nextElement();
LOGGER.debug( "Session Attribute " + att + " = " + ses.getAttribute( att ) ); LOGGER.debug( "Session Attribute: " + att + " =: " + ses.getAttribute( att ) );
} }
if ( null == visit ) if ( null == visit )
@ -90,7 +124,7 @@ public class LexLogger
String att = (String) enum.nextElement(); String att = (String) enum.nextElement();
if ( !EXCLUDED_PARAMS.contains( att ) ) 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 ) ); debugComponent( context.getAttribute( LexConstants.GLOBAL_CONTEXT_ATTR ) );
@ -150,13 +184,13 @@ public class LexLogger
{ {
try try
{ {
LOGGER.debug( "Describing: " + component ); LOGGER.debug( "Describing:: " + component );
String label = component instanceof ILexComponent ? ( (ILexComponent) component ).getLabel() : component.toString(); String label = component instanceof ILexComponent ? ( (ILexComponent) component ).getLabel() : component.toString();
Iterator it = BeanUtils.describe( component ).entrySet().iterator(); Iterator it = BeanUtils.describe( component ).entrySet().iterator();
while ( it.hasNext() ) while ( it.hasNext() )
{ {
Map.Entry entry = (Map.Entry) it.next(); 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 ) catch ( Exception e )
@ -164,7 +198,7 @@ public class LexLogger
StringWriter writer = new StringWriter(); StringWriter writer = new StringWriter();
e.printStackTrace( new PrintWriter( writer ) ); e.printStackTrace( new PrintWriter( writer ) );
String stackTrace = writer.getBuffer().toString(); 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" %> <%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="encyclopediaArticle" value="${ sessionScope.visit.helper.component }"/> <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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<% request.setCharacterEncoding("UTF-8"); %>
<!--Begin Render-->
<jsp:include page="header.jsf" flush="false"/> <jsp:include page="header.jsf" flush="false"/>
<!--displayEntry.jsp--> <!--displayEntry.jsp-->
<c:set var="editMode" value="${ false }" scope="request"/> <c:set var="editMode" value="${ false }" scope="request"/>
<c:if test="${ ! sessionScope.visit.user.guest && sessionScope.visit.helper.showEditOptions }"> <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" %> <%@ 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" contentType="text/html; charset=UTF-8"%>
<%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:include page="header.jsf" flush="false" /> <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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="function" value="${ sessionScope.visit.helper.component }"/> <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" %> <%@ 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="isNote" value='${ sessionScope.visit.helper.component.label == "analyticalNote" }'/>
<c:set var="isTranslation" value='${ sessionScope.visit.helper.componentIsTranslation }'/> <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" %> <%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:if test="${ sessionScope.visit.helper.showNotes }"> <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" %> <%@ 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" %> <%@ 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" %> <%@ 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" %> <%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="spelling" value="${ sessionScope.visit.helper.component }"/> <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" %> <%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTerm.jsf--> <!--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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTransitionalData.jsf--> <!--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" %> <%@ 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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTree.jsf--> <!--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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!--displayTreeToc.jsf--> <!--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" %> <%@ page buffer="512kb" autoFlush="false" import="java.io.*, org.thdl.lex.*,org.thdl.lex.component.*" isErrorPage="true" %>
<%@ taglib prefix="req" uri="http://jakarta.apache.org/taglibs/request-1.0" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <!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"); { LexComponent lab = (LexComponent) request.getAttribute("component");
%> %>
<b> Label: </b> <i> <%= lab %> </i><br /><br /> <b> Label: </b> <i> <%= lab %> </i><br /><br />
<%-- <b> Sql String: </b> <i> <%= lab.getSqlString() %> </i>
--%>
<% } %> <br /><br /> <% } %> <br /><br />
@ -57,7 +55,10 @@ The message appears below.<br />
%> %>
<pre> <pre>
<%= stackTrace %> <%= stackTrace %>
</pre> </pre>
</p> </p>
</div> </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="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix = "req" uri = "http://jakarta.apache.org/taglibs/request-1.0" %> <%@ taglib prefix = "req" uri = "http://jakarta.apache.org/taglibs/request-1.0" %>
@ -25,3 +25,5 @@
</body> </body>
</html> </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" /> <jsp:include page="header.jsf" flush="false" />
<p>Thank you</p> <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" %> <%@ 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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <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> <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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:include page="header.jsf" flush="false" /> <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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:include page="header.jsf" flush="false" /> <jsp:include page="header.jsf" flush="false" />
<!--metaDefaultsForm.jsp--> <!--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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:include page="header.jsf" flush="false" /> <jsp:include page="header.jsf" flush="false" />
<!--metaPrefsForm.jsp--> <!--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"> <ul class="navLinks">
<li> <li>
<a href="http://iris.lib.virginia.edu/tibet/reference/dictionary.html">Dictionary Home</a> | <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" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:include page="header.jsf" flush="false" /> <jsp:include page="header.jsf" flush="false" />
<!--menu.jsp--> <!--menu.jsp-->