facebook

[Closed] making URL match changes in struts-config.xml

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #239399 Reply

    Bruce Petro
    Member

    If I setup an action and I start saying it starts from /forms/test.jsp … then get it working, then want to change the jsp page from that beginning page name to a final formal page name (say, /community/login.jsp), the config.xml appears to change fine, but the URL and I believe therefore the .MEX file is not in sync with that change.

    I also tried changing the .mex by hand, which seemed to improve things a bit, but even after a full refresh, something is still out of sync.

    Restatement: struts-config.xml changes to an action, input paramenter, changing it to a different jsp page causes the struts-config.xml source view not match the design view.

    #239409 Reply

    Bruce Petro
    Member

    Ahah! One clarification. Manually editing the mex file DID reflect in the URL drawing except the new longer name no longer fit in the size box. Once I resized the box then the new name of the jsp did show up.

    So main bug is that it should not require manually editing the mex file to reflect changes in the xml file done via the proper processes. A nice to have would be that if a name was changed the sizing of the box would be adjusted to fit the new name.

    #239416 Reply

    Brian Fernandes
    Moderator

    bapetro,

    Nothing should require you to change the mex file. We maintain that file internally and it is not intended to be user editable. The editor will automatically sych changes made in the source page onto the design page, and you shouldn’t even have to know about the existance of the mex file.

    If there is a problem synchronizing source changes, we’ll take a look at the issue.
    I’m afraid I could not understand your explaination of the problem; could you please restate it with before and after code snippets, what you expected to happen in the Design view and what actually did happen?
    Did you make all your changes in the source view or did you use our wizards to make some of the changes?

    If there is a bug in the behaviour, we’d like to fix it and would appreciate your assistance,
    Thanks,
    Brian.

    #239455 Reply

    Bruce Petro
    Member

    Cool. OK, first of all, I musta been tired because above, even in the subject I typed URL – I MEANT UML. The UML and struts-config were out of sync. OK, what I did was edit the struts-config.xml file source, not thru the menus.

    I changed:
    <action
    attribute=”loginForm”
    input=”/forms/login.jsp”
    name=”loginForm”
    path=”/login”
    scope=”request”
    type=”com.wfc.struts.action.LoginAction”>
    </action>
    to something like:
    <action
    attribute=”loginForm”
    input=”/community/login.jsp”
    name=”loginForm”
    path=”/login”
    scope=”request”
    type=”com.wfc.struts.action.LoginAction”>
    </action>
    IE: directory change from forms to “community”

    This appeared to not change the makeup of the MEX file. Although as noted in the secondary post, it might be that it changed it (I don’t think so) but just displayed it poorly due to the size change. I believe it is an actual out-of-sync error, but since I appear to have been tired might have just been a display error.

    THANKS!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] making URL match changes in struts-config.xml

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