facebook

Problems with Struts demo completion

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

    cfrers
    Member

    Hi Riyad:

    After successfully deploying the Struts application demo at home,
    I tried to reproduce the same results at work. I used the same application
    server Tomcat 5. I also created a separate instance of Eclipse with a
    separate workspace for each attempt. The results were always the same.
    After creating the success.jsp page, the demo instructs us to right click the
    login action. I select the /login under the actions-mapping directory
    and there is no context menu displaying (new Forward | new Exception). Therefore,
    the new struts forward declaration dialog is never displayed. We tried this with 5
    different instances of Eclipse but got the same dissappointing result.

    We then tried to bypass the wizards all together but managed to cause the entire
    toolbar under File, Edit, Navigate to dissappear and we could not get it back until we
    created a fresh instance of eclipse again. We are in the middle of a tool evaluation process
    and I can’t think of anything I did different when I tried this at home. How can we get back on track?

    Two comments which could improve the struts demo in general:
    It is not clear that you need to add in the LoginAction file the line:
    request.getSession().setAttribute(“name”, loginForm.getName());
    ” loginForm.getName()); ” is hidden in the demo.

    It is not clear that the create JSP flag needs to be checked for the form to
    appear in the navigation bar. This fooled me a few times even though I have
    had some practice with this demo 😉 and I had to start over to construct the form.

    Thanks,
    Claudia

    #205406 Reply

    Riyad Kalla
    Member

    Claudia,
    We are sorry you ran into this, the problem with the demo is that we created it with RC2 release of MyEclipse, but you must be using the GA or .1 release of MyEclipse at work. In these release we disabled the context menus in the struts-config outline view, and movied everything to the File>New menu (you’ll notice if you have the struts-config file open, and go to File>New, you can add Actions and Forms from here).

    We had to do this because the wizards in the outline view were not playing nice with people that had multiple struts modules (i.e. multiple struts-config files like: struts-user-config.xml, struts-management-config.xml, struts-service-config.xml, etc. etc.) so we disabled them for the 2.7 series and moved them into the File>New menu, and in the 2.8 release we are going to enable the context menus again along with an editable flow view which will be great.

    About the Demo, I think you are exactly right. The original draft of the demo showed all the typing slowly and was easy to follow BUT it was about 15mins long, we tried to speed up the typing and some of the actions so people wouldn’t get bored and damn us for a slow demo, and I think in the process we lost some info. I’ll pass this along and see if we can resample that demo with slowed down typing while editing the code files.

    Thanks for the great feedback!

    #205436 Reply

    cfrers
    Member

    >>you must be using the GA or .1 release of MyEclipse at work
    yup!

    >(we) movied everything to the File>New menu
    Riyad, I found the new forward under
    File->New->Other->J2EE>Struts1.1->Struts1.1Forward.

    IOW, pretty hidden and confusing as opposed to the original suggestion.
    I am glad that this will be changed in the future.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problems with Struts demo completion

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