struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ROWLAND, CLAY, ATTSI" <clayrowl...@att.com>
Subject RE: [ActionServlet] /WEB-INF/web.xml was not found
Date Mon, 08 Oct 2007 15:11:17 GMT

hi dave.   you're right.  i was experimenting with the web.xml.   here
is how i think it should look after removing the taglibs:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

  <!--  Action Servlet Configuration -->
  <servlet>
    <servlet-name>action</servlet-name>
 
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
 	
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  
  <servlet>
    <servlet-name>ticket</servlet-name>
    <servlet-class>com.att.devtools.ticket.TicketServlet</servlet-class>
  </servlet>

 <servlet-mapping>
    <servlet-name>ticket</servlet-name>
    <url-pattern>/ticket</url-pattern>
  </servlet-mapping>

</web-app>


-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Monday, October 08, 2007 10:50 AM
To: Struts Users Mailing List
Subject: RE: [ActionServlet] /WEB-INF/web.xml was not found

--- "ROWLAND, CLAY, ATTSI" wrote:
>
<param-value>/ticketapp/WEB-INF/struts-config.xml</param-value>

This confuses me; is your application context
"ticketapp"? If so I wouldn't think you'd need to
preface your /WEB-INF/... with it.

As was pointed out the taglib elements in web.xml have
been unnecessary for quite awhile.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message