We developed our first application in struts after having set some coding standards that seemed (at the time) pretty reasonable. Chief among them for purposes of this discussion is securing access to JSP pages by putting them under WEB-INF. We are in the process of integrating a second struts-based app into the main application, and originally planned to do so as two separate modules. However, I am running afoul of several limitations in the struts module support.
Firstly, we had originally gone with path-mapping for our actions. I figured out from the mailing lists pretty quick that using modules for path-mapped actions is not supported. Is there any plan to build such support into the next or some future release? When?
So I converted the apps to extension-mapped actions and proceeeded. However, I am hitting the "struts prepends module context to every path" wall: I can no longer create forwards to JSP pages in WEB-INF, but instead have to put them in module-specific subdirectories of the document root. Is there any reasonable way around this via the configs? Or do I have to create a custom "JSP page forward" action to handle this particular (but not peculiar) need?
Lastly, since going the module route was proving exceeding difficult, we decided to treat both apps as a single module, but with separate config files for each (as specified in web.xml). However, there appears to be a bug (feature?) in struts with message resource loading - the last set of resources loaded are the only ones that will be present. This appears to be because ModuleConfigImpl holds a hashmap of resource bundles with only a single possible key. As each set is added to the map, it displaces the previously added set. To get around this, I had to merge all properties from both apps into a single properties file - not desireable but it works. All the other parts of the configs (forms, actions, forwards, etc.) all seem to be additively accumulated. Is this exclusive loading of message resources truly a bug? Can't struts handle multiple sets of properties per module?
Answers, suggestions and workarounds would be most welcomed!
Thanx!
jeff
-- Jeffrey Bonevich Ann Arbor, Michigan bonevich at covad dot net jeff at bonevich dot com http://www.bonevich.com
"Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life." - Ancient Didactical Saying
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]