Hi,
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