- This topic has 1 reply, 2 voices, and was last updated 20 years ago by support-michael.
-
AuthorPosts
-
Steven FinesMemberI’ve got a fairly large application, with many different struts mappings. To segment these mappings (using struts 1.1) the original developers had used
a System entity reference trick of xml to include them into the struts-config.xml without actually putting all of them in the same file (there would be hundreds of mappings if they had). Each individual included reference is just a snippet of XML, but when they’re parsed, they are included as if it were one file. The struts-config.xml looks like (I’ve trimmed it down):
<!DOCTYPE struts-config PUBLIC
“-//Apache Software Foundation//DTD Struts Configuration 1.1//EN”
“http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”
[
<!ENTITY eft-form SYSTEM “eft-form.xml”>
]>struts-config>
<!– ========== Form Bean Definitions =================================== –>
<form-beans>
&eft-form;
</form-beans>Is there any reason that the outline view doesn’t properly reference these elements? It’s valid XML and a trick often used in large Struts 1.1 applications (you had no choice, in Struts earlier than 1.2 there was no way to include other XML files…).
I’ve been very pleased with my overall experience with MyEclipse; but I would like to be able to use this mapping functionality… it would make my life so much easier!
Thanks,
Steve
support-michaelKeymasterThe reason “includes” are not supported is that the outline reflects the direct contents of the src editor and provides navigation and wizard action contexts, i.e. the outline view is slaved to the src editor. Therefore includes are ignored otherwise the editor would have to manage a multi-context edit environment for the top-level file and each include. The problem is analogous to the outline view of a JSP document with included fragments. Should the outline show the nodes for the document and each JSP fragment and that fragment’s fragments, as well as provide operations on the nodes?
I understand the issue and it is my understanding that Struts modules are the mechanism for partitioning very large config files. If there is enough interest I’m sure our management would give this problem higher consideration.
Regards,
-
AuthorPosts