tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From R A <java2des...@yahoo.com>
Subject Re: WebSphere supports servlets in </welcome-file> does Tomcat?
Date Fri, 23 Jul 2004 02:30:27 GMT
I added your schema def to the web.xml, but it still displays the directory listing when I
bring up the web app (i.e. http://localhost:8084/webApplication). However, when I access via
the URL(i.e. http://localhost:8084/webApplication/index.do) it executes..
 
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
     version="2.4">
  <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>com.wne.WNEActionServlet</servlet-class>        
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
            <param-name>definitions-debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>definitions-parser-details</param-name>
            <param-value>0</param-value>
        </init-param>
 <init-param>
            <param-name>definitions-parser-validate</param-name>
            <param-value>true</param-value>
        </init-param>
 <init-param>
           <param-name>userFile</param-name>
           <param-value>D:/JavaProjects/test.dat</param-value>
     </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</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>
  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>
   <!-- The Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.do</welcome-file>
  </welcome-file-list>
  <jsp-config>
  <taglib>
      <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
      <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
      <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    </jsp-config>
</web-app>


Tim Funk <funkman@joedog.org> wrote:
Try:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

-Tim

R A wrote:
> I mean web-app_2_4.dtd does not exist at http://java.sun.com
> 
> 
> R A wrote:
> DTD http://java.sun.com/dtd/web-app_2_3.dtd does not exist at java.sun.com. Any ideas??
> 
> Tim Funk wrote:Your dtd is for the 2.3 spec, try using 2.4.
> 
> -Tim
> 
> R A wrote:
> 
> 
>>Here is a copy of my web.xml. I am using struts 1.1 and using an action(index.do)
in the . This should be ok, since every request goes through the ActionServlet. When I point
to the web app via a browser, it displays a directory listin; however, when I type index.do
on the url, it executes index.do and maps to the correct jsp.
>>
>>
>>
>>>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>
>>"http://java.sun.com/dtd/web-app_2_3.dtd">
> 
> 


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


		
---------------------------------
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message