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?

7 comments

Yes it does. To see your config file in diagram and tree views, just open it (e.g. double click in IDEA Project view)

0

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.

0

Maybe, config files interaction is not perfect :) But something is already implemented, e.g. lookups / choosers recognize entire Struts configuration.

0

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?

0

What do you mean by "coming up"? "Struts Assistant" tab shows struts configuration file structure after opening the file... No naming convention is required :)

0

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.

0

The struts-config doctype tag must be defined for the assistant to process the file.

]]>


0

Please sign in to leave a comment.