Hi all, I'm facing a problem, surely due to an error in my configuration, but can't find out a solution for it...
I would like two webapps, both built upon Struts 2 (2.0.11), to have different action extensions: - webapp-A will have *.do - webapp-B will have *.action Both webapps have the same web.xml in their respective WEB-INF (see below). In webapp-A, struts.properties goes like this : struts.action.extension=do whereas in webapp-B, it goes like that : struts.action.extension=action Now, when accessing webapp-A/myAction.do, no action is reached. No error message, nothing in the logs, just a blank page in the browser. Strangely, webapp-A/myAction.action hits the correct action, and the page renders correctly. But the rendered html form is pointing to *.do actions, and you get the above-mentionned blank page when submitting the form. On the other hand, webapp-B is working like a charm, all with *.action actions. The struts2-core-2.0.11.jar is placed in the shared/lib folder in the Tomcat (5.5.25) hierarchy. If I place the jar in the respective WEB-INF/lib/ folder instead, all works as expected. However, such a solution is not an option for me (because of the size of the resulting war file, tedious upgrade process, etc...). Could it be that the action extension is defined at startup time as a global variable, shared by all the webapps if the struts library is placed in the shared/lib folder? Is there a way to force the webapps to always read the action extension from their own struts.properties file? Thanks for the help, alexis ------------------------------------------------------------------------ web.xml file, same content for both webapps <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" 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"> <filter> <filter-name>struts-cleanup</filter-name> <filter-class> org.apache.struts2.dispatcher.ActionContextCleanUp </filter-class> </filter> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts-cleanup</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>/jsp/index.jsp</welcome-file> </welcome-file-list> </web-app> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]