- This topic has 4 replies, 2 voices, and was last updated 20 years, 1 month ago by MatzLE.
-
AuthorPosts
-
MatzLEMemberHi,
I think the support of modules is not handled correctly by the struts designer.
We have a project (not designed with MyEclipseIDE but another tool/manually) which has two struts-config.xml:
The regular one in /Web/WEB-INF/struts-config.xml with the jsps residing in /Web.
And another module with /Web/extern/struts-config.xml and the jsps residing in /Web/extern.When I edit the /Web/extern/struts-config.xml, no links to jsps are handled correctly: their root should be /Web/extern bould MyEclipseIDE demands /Web – so in the designer
a) it can’t find the jsps for this – when deployed perfectly working – struts-config.xml
b) when adding new jsps their references in the struts-config.xml are wrong.Example: I have /Web/extern/login.jsp. So in the existing /Web/extern/struts-config.xml I have a forward:
<forward name="login" path="/login.jsp"/>
which is correct. When I edit the properties of this forward in the struts designer and change the forward path, the root is /Web but it should be /Web/extern. So assuming I use MyEclipseIDE to set the path, I can only change the path to /extern/login.jsp which is not correct.
So I tried to circumvent the problem by creating a new struts module with MyEclipseIDE which brought me to the second problem:
I use New->Other->Struts 1.1 Module->Module Name “extern” -> OK
which creates a /Web/WEB-INF/struts-config-extern.xml. So far so good.
But
1. The problems with the paths are the same.
2. When I close this file and reopen it, it is not recognized as a struts-config but as a regular XML file – ergo the struts designer is not available.I hope that helps to improve the struts designer.
Keep up the good work!Matz
Riyad KallaMemberMatz,
w.r.t. to #2, the file not being recognized by the Struts Designer is an Eclipse limitation, we cannot map wildcards to file types, so you have to open the file manually (or associate its full name) with the STruts Designer. Try that, and see if the editing works.
MatzLEMemberAssociating the full name works but is dirty – how can I open the file manually?
When I rightlick the file I can only choose. “MyEclipse Web Browser”, “MyEclipse XML Editor”, “Text Editor”, “System Editor”, “In-Place Editor”, “Default” and none of them brings up the Designer.
Riyad KallaMemberAssociating the full name works but is dirty – how can I open the file manually?
Right Click > Open With > “MyEclipse Struts Editor”, if its not there, then you have to do the association. I agree it does seem dirty, its annoying for us as tool providers that we cannot simply give: “struts-config*.xml” as a mapping that the Eclipse platform will honor.
MatzLEMemberAh, thx – I associated *.xml with Struts Editor (additionally) and now I can choose it via RMB.
The problem with the modules remains – do you open a bug for this or shall I do it?
-
AuthorPosts