facebook

Support for Struts modules?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #232662 Reply

    Finch
    Member

    Hello support 🙂

    I have recently started using MyEclipse for Struts development and like it a lot so far (coming soon to this forum: my wishlist :-)))

    BUT I have a problem with my modules.

    My web.xml contains this:
    <init-param><param-name>config</param-name><param-value>/WEB-INF/struts-config.xml</param-value></init-param>
    <init-param><param-name>config/client</param-name><param-value>/WEB-INF/struts-config-client.xml</param-value></init-param>
    <init-param><param-name>config/admin</param-name><param-value>/WEB-INF/struts-config-admin.xml</param-value></init-param>

    So far so good.
    When I edit struts-config-client.xml in the struts editor, I can not open the forwards by double clicking. It keeps telling me
    “Unable to not open (sic! *lol*) editor” (well, go ahead then!) “File context/web/test.jsp does not exist”.

    Yes, that’s correct. The file that SHOULD be opened is “context/web/client/test.jsp”.

    All this “works” fine in Tomcat, it’s just an issue with the Visual Editor.
    (How) can I change that?

    Any hints appreciated 🙂

    Finch

    P.S.: Is there any way of a “reverse lookup”? In my jsp: “Forward for which actions”? In my action-classes: Mapped to which action(s)?

    #232663 Reply

    Finch
    Member

    oops: forgot to mention: This is ME 4.0 M2 on Eclipse 3.1 (and 3.8.4 on Eclipse 3.0)

    #234186 Reply

    Finch
    Member

    Hello? Anybody?

    There should either be an answer to this or it IS a bug / feature request… either way, it should not remain unanswered…

    #234236 Reply

    Brian Fernandes
    Moderator

    Finch,

    Sorry your post was unanswered, I honestly don’t know how it was missed.

    I understand your issue about the double click not working as expected. We had overlooked this while coding in the double click :), it’s a good request and I’ll file it asap. Thanks.

    Re: “reverse lookup” – no, sorry that isn’t possible yet.

    Best,
    Brian.

    #241111 Reply

    Hi, I have a same problem, all work in tomcat, but whe I can edit a jsp, or add a new, it is add with a incorrect path:

    I have two modules:
    /WEB_INF/module1/struts-config-module1.xml
    /WEB_INF/module1/struts-config-module2.xml
    –> WebRoot:
    /
    module1/pages/index.jsp
    module2/pages/index.jsp

    When edit any struts-config, for add an jsp, the path is refrenced to /module1/pages/index.jsp ( it is incorrect ), the path would be /pages/index.jsp.-

    any ideas ???

    Thanks

    Claudio

    #241124 Reply

    Riyad Kalla
    Member

    Claudio,
    I have very limited experience with Struts modules, what does your web.xml file look like to specify each module? Also why is the path /module1/pages/index.jsp wrong, it is being resolved from your webroot which AFAIK is correct.

    If it were resolved from your /pages directory instead, what mapping tells the servlet container to pre-pend the /module1 path to the file URL request?

    #241126 Reply

    Finch
    Member

    I think this is essentially the same problem I posted, just “the other way around”.

    MY problem (original post) is: MyEclipse does not properly resolve relative (module) paths to “absolute” (relative to webspace root) paths.
    Claudio’s problem: MyEclipse does not property transform absolute paths to relative (module) paths.

    If it were resolved from your /pages directory instead, what mapping tells the servlet container to pre-pend the /module1 path to the file URL request?

    Take a look at my post. There’s a “param-name” in the web.xml

    This is not some “funny patch”, it’s part of the Struts specification (even 1.1).
    Look for “struts modules” in Google (!!!).
    A VERY quick search and a brief look turned up this page (hit #4), which seems to be a good starting point (the MyEclipse developers should know this?!):

    http://publib.boulder.ibm.com/infocenter/wsad512/index.jsp?topic=/com.ibm.etools.struts.doc/topics/cstrdoc012.html

    Hope this will be fixed soon. This is not a “feature request”, it’s clearly a bug and it shouldn’t take several months to fix :-((

    Regards,

    Finch

    #241139 Reply

    Riyad Kalla
    Member

    Finch,
    We appreciate the informative post, the developers are aware of the problem and the solution, I will send your comments along.

    I would like to point out that *I* am not farmiliar with modules and in an attempt to provide a better description of the problem to the dev team, was asking for more details on them. Your sarcasm is not necessary or welcome.

    #241153 Reply

    Ok, I wait your comments.-

    Claudio

    #241284 Reply

    some advance on the problem?
    I need to work with modulos in a new project.-
    Thanks.-

    #241302 Reply

    Riyad Kalla
    Member

    Claudio,
    There is a bug with how Modules are currently supported, we will need to fix it before these cases above are solved. I’m sorry, but right now manually editing the paths created seems to be the only workaround.

    #243010 Reply

    Finch
    Member

    @rkalla: no sarcasm intended. Sorry if it sounded like that.

    Please also note that I’m not a native speaker 🙂

    But you must admit that asking for details a full 4 (3) months after a bug was posted (acknowledged) does sound a bit strange and not like asking for “initial input to the dev team”. Especially since the initial post was rather detailed…

    But anyway: Looking forward to a fix… (and waiting rather impatiently by now… haven’t used MyEclipse for a couple of weeks now, I’ll have to get an update tomorrow and check if this has improved 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Support for Struts modules?

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