This commit is contained in:
dubtraxis 2003-10-06 00:37:12 +00:00
parent 33ee23cc8f
commit 113a3ef551
4 changed files with 255 additions and 0 deletions

View file

@ -0,0 +1,9 @@
hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost/Lex
hibernate.connection.username=java
hibernate.connection.password=rkgwvnvrt
hibernate.connection.useUnicode=true
hibernate.connection.characterEncoding=utf-8
#hibernate.connection.pool_size=10

View file

@ -0,0 +1,6 @@
<codegen>
<meta attribute="scope-class" inherit="false">abstract public </meta>
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer"/>
<!-- <generate package="org.thdl.lex.component.peer" suffix="Peer" renderer="net.sf.hibernate.tool.hbm2java.FinderRenderer"/> -->
</codegen>

View file

@ -0,0 +1,54 @@
<Context path="/lex" docBase="/Users/travis/webapps/lex/build" debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/lex-datasource">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/Lex</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>java</value>
</parameter>
<parameter>
<name>password</name>
<value>rkgwvnvrt</value>
</parameter>
<parameter>
<name>useUnicode</name>
<value>true</value>
</parameter>
<parameter>
<name>characterEncoding</name>
<value>utf-8</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
</ResourceParams>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs/access" prefix="lex_access_log." suffix=".txt"
pattern="combined" resolveHosts="true"/>
</Context>

186
config/web.xml Normal file
View file

@ -0,0 +1,186 @@
<?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>component</filter-name>
<filter-class>org.thdl.lex.LexComponentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>authentication</filter-name>
<url-pattern>/action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>authentication</filter-name>
<url-pattern>/jsp/*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>authentication</filter-name>
<url-pattern>/jsp/*.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>
</servlet>
<servlet>
<servlet-name>public</servlet-name>
<servlet-class>org.thdl.lex.LexActionServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>org.thdl.lex.LoginServlet</servlet-class>
<!-- <init-param>
<param-name>userDataManager</param-name>
<param-value>org.thdl.lex.LexUserDataManager</param-value>
</init-param> -->
<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>/index.jsp</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>test</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/action</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>public</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>
<!--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-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>