StrutsAssistant: multiple struts-configs
My struts application has multiple struts-config's all being referenced from web.xml. However, StrutsAssistant only recognizes one of them - the first... Does it actually support multiple struts-config files?
Please sign in to leave a comment.
Yes it does. To see your config file in diagram and tree views, just open it (e.g. double click in IDEA Project view)
Yes, you're right, I've tried clicking on individual struts-config's and they worked. But I think a nice improvement would be to make them integrated - i.e. plugin to parse web.xml, retrieve the list of struts-config's, parse them all & integrate into one virtual struts-config (maybe leaving the possibility to see how it split across real configs). The rationale is to understand when something defined in one struts-config is then used in another.
Maybe, config files interaction is not perfect :) But something is already implemented, e.g. lookups / choosers recognize entire Struts configuration.
They've got a collection of Struts module configs where I work, named like struts-project-module.xml. These files do not come up in the assistant. Do only files actually named struts-config.xml come up or is there a configuration setting I missed?
What do you mean by "coming up"? "Struts Assistant" tab shows struts configuration file structure after opening the file... No naming convention is required :)
Not "coming up" as in not showing the file structure at all. The behavior is, open "struts-config.xml" and the structure shows in the assistant. Open struts-adm-mn.xml, a struts module config file, and nothing shows in the assistant. It acts as if the assistant doesn't recognize the struts-adm-mn.xml file as a struts config file.
The struts-config doctype tag must be defined for the assistant to process the file.