tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Wong <gabri...@webappcabaret.com>
Subject Re: the tomcat welcome file one struts action
Date Sat, 08 Sep 2007 23:14:30 GMT
You may want to check on the Struts list. It could be a CASE SENSITIVITY 
issue.
Does your app come up when you include Index.do in the URL?

Miren Urkixo wrote:
> Hello
> I am trying to make one web aplication using  struts into one tomcat 
> 5.0.XX
> In my web.xml file i writte whic is my welcome file, one struts action 
> (Index.do) but the tomcat doesn't not show the action, shows me the 
> all files from the index directory, listing my / directory.
> Can you help me for making the index file , welcome file, been one 
> struts action (Index.do)?
>
> Thanks
> My web.xml file is this:
>
> <?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" version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
> <display-name>VeniveNicaragua</display-name>
> <context-param>
>  <param-name>
>   javax.servlet.jsp.jstl.fmt.localizationContext
>  </param-name>
>  <param-value>
>   /WEB-INF/classes/com/ApplicationResources
>  </param-value>
> </context-param>
>
> <filter>
>  <display-name>Filtro</display-name>
>  <filter-name>Filtro</filter-name>
>  <filter-class>
>   com.gestor.Filtro
>  </filter-class>
> </filter>
> <filter-mapping>
>  <filter-name>Filtro</filter-name>
>  <url-pattern>/</url-pattern>
> </filter-mapping>
> <filter-mapping>
>  <filter-name>Filtro</filter-name>
>  <url-pattern>*.jsp</url-pattern>
> </filter-mapping>
> <filter-mapping>
>  <filter-name>Filtro</filter-name>
>  <url-pattern>/Index.do</url-pattern>
> </filter-mapping>
>
> <servlet>
>  <servlet-name>InitServlet</servlet-name>
>  <servlet-class>
>   com.gestor.servlets.InitServlet
>  </servlet-class>
>  <load-on-startup>1</load-on-startup>
> </servlet>
> <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>
>  <init-param>
>   <param-name>debug</param-name>
>   <param-value>3</param-value>
>  </init-param>
>  <init-param>
>   <param-name>detail</param-name>
>   <param-value>3</param-value>
>  </init-param>
>  <load-on-startup>0</load-on-startup>
> </servlet>
> <servlet-mapping>
>  <servlet-name>action</servlet-name>
>  <url-pattern>*.do</url-pattern>
> </servlet-mapping>
> <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/struts-bean.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>   <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>   <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
>   <taglib-location>
>    /WEB-INF/struts-nested.tld
>   </taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
>   <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
>   <taglib-location>/WEB-INF/fmt.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/c-rt.tld</taglib-uri>
>   <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
>  </taglib>
>  <taglib>
>   <taglib-uri>/WEB-INF/c.tld</taglib-uri>
>   <taglib-location>/WEB-INF/c.tld</taglib-location>
>  </taglib>
> </jsp-config>
> </web-app>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>


-- 
Regards



Gabriel Wong

Beyond Private JVM JAVA Hosting

http://www.webappcabaret.com


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message