facebook

Struts-Designer: Problem with modules

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #216970 Reply

    MatzLE
    Member

    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

    #216997 Reply

    Riyad Kalla
    Member

    Matz,
    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.

    #216999 Reply

    MatzLE
    Member

    Associating 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.

    #217003 Reply

    Riyad Kalla
    Member

    Associating 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.

    #217112 Reply

    MatzLE
    Member

    Ah, 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?

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Struts-Designer: Problem with modules

You must be logged in to post in the forum log in