Struts has to know how to rewrite action URLs, and it can only do that by using the url-pattern. Do you have a different <servlet-mapping> which points /*.do to a different servlet configured with the other XML file?

For what you're trying to do, Modules are probably the closest Struts feature which supports this. On the other hand, you can also have a single module which uses any number of struts-config.xml files, and I find this more straightforward than the module functionality, which imposes more strict separation between the modules than fits the compartmentalization model that I have in my head.

Here's the "official" doc on modules:
http://struts.apache.org/userGuide/configuration.html#dd_config_modules

That section also links to this
http://struts.apache.org/userGuide/configuration.html#dd_config_servlet
as a reference for using multiple struts-config.xml files with a single module and a single servlet.


Joe

At 1:35 PM -0800 3/11/05, Carl Smith wrote:
In my application I have two configuration file (1) struts-config.xml and (2) struts-app1.xml. I have this entry in the web.xml

<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>/*.app1</url-pattern>

</servlet-mapping>



When using this approach, I have a strange issue: For almost all the form submit, in the url the action will automatically apend .app1, example when submitted, I see this in the url



https://www.mypath/submitAction.app1, I want to see https://www.mypath/submitAction.do instead.

Thanks.



---------------------------------
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site!


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to