Hi all,

I would like to use displaytag lib in my application.
I dropped displaytag-1.0.jar in /WEB-INF/lib, dropped
following jar files in /WEB-INF/lib as well :
- commons-beansutils-1.6.1
- commons-collections-2.1.1
- commons-langs-2.0
- commons-logging-1.0.4
and log4j-1.2.8

Added displaytag-11.tld in /WEB-INF/.

and my web.xml looks like this : 
<?xml version = '1.0' encoding = 'windows-1252'?>
<!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>
  
  <session-config>
    <session-timeout>35</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
  
  <!-- DWR AJAX servlet -->
        <servlet>
          <servlet-name>dwr-invoker</servlet-name>
          <display-name>DWR Servlet</display-name>
    <description>Direct Web Remoter
Servlet</description>
         
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
          <init-param>
             <param-name>debug</param-name>
             <param-value>true</param-value>
          </init-param>
        </servlet>
  
  <servlet>
    <servlet-name>FLSAReportsUpload</servlet-name>
   
<servlet-class>org.worldatwork.flsareports.FLSAReportsUpload</servlet-class>
  </servlet>
  
  <servlet>
    <servlet-name>FLSAReportsLogin</servlet-name>
   
<servlet-class>org.worldatwork.flsareports.FLSAReportsLogin</servlet-class>
  </servlet>
        
  <!-- DWR AJAX servlet -->
        <servlet-mapping>
                <servlet-name>dwr-invoker</servlet-name>
                <url-pattern>/dwr/*</url-pattern>
        </servlet-mapping>
  <!-- end DWR AJAX Servlet -->
  
  
  <servlet-mapping>
    <servlet-name>FLSAReportsUpload</servlet-name>
    <url-pattern>/FLSAReportsUpload</url-pattern>
  </servlet-mapping>
  
  
  <servlet-mapping>
    <servlet-name>FLSAReportsLogin</servlet-name>
    <url-pattern>/FLSAReportsLogin</url-pattern>
  </servlet-mapping>
  
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  
  <taglib> 
   
<taglib-uri>/WEB-INF/displaytag-11.tld</taglib-uri> 
   
<taglib-location>/WEB-INF/displaytag-11.tld</taglib-location>
  </taglib>
  
</web-app>

and in my jsp page I included : 
<%@ taglib uri="http://displaytag.sf.net";
prefix="display" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">....

When I try to deploy my application I am getting this
error :
Error(18,10): Invalid element 'servlet' in content of
'web-app', expected elements '[mime-mapping,
welcome-file-list, error-page, taglib,
resource-env-ref, resource-ref, security-constraint,
login-config, security-role, env-entry, ejb-ref,
ejb-local-ref]'.
Error(29,18): Invalid element 'servlet-mapping' in
content of 'web-app', expected elements
'[mime-mapping, welcome-file-list, error-page, taglib,
resource-env-ref, resource-ref, security-constraint,
login-config, security-role, env-entry, ejb-ref,
ejb-local-ref]'.

Anyone has any idea what is wrong with my web.xml or
something else that I missed? 
Btw, I am using JDeveloper 10.1.2.
Thank you in advanced.



                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to