facebook

[Closed] Struts Action Declaration in Design Losing Info

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

    dthompson
    Member

    I’m using MyEclipse Enterprise Workbench Version 5.0.1 GA.

    When working on struts-config.xml in design mode, create a new Action,
    fill out Use case with Page6,
    click Action Type: Forward

    Now fill out Form:
    Name: employeeForm (exists in project)

    Click Finish

    Now it doesn’t matter if Scope is changed or if Validate Form is turned on or off, always the name and attribute and scope are not inserted into the action in the xml. If you edit the xml and add it, then it works as expected.

    #260905 Reply

    Riyad Kalla
    Member

    This is a bit strange, but the reason it doesn’t work is because you need to change the scope to Session if you want to use a form with a forward. If you use a request scoped form, it is populated with information, then handed to the forward, then immediately the client is redirected to the forward page and the form is thrown out.

    If you change the scope to session, it works as expected.

    #260926 Reply

    dthompson
    Member

    As I stated in the original message–even if I change the scope to session, it still does not change the values in the xml. Basically, I have to hand edit them to make it work.

    #260956 Reply

    Riyad Kalla
    Member

    My appologies I read right over that, I’ll file a bug on this.

    #261110 Reply

    Riyad Kalla
    Member

    dthompson,
    We have a developer working on this and he is not clear exactly what the problem is. For example, ActionForward has no argument it can accept that is an ActionForm, so why would you be sending a form to a forward? Even a custom forward won’t get it. Can you explain the use case and execution sequence in a bit more detail.

    Also can you give an example of XML that MyEclipse generates and then what it looks like once you’ve edited it so we can see exactly what is missing? Thank you for your help in getting this fixed.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Struts Action Declaration in Design Losing Info

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