facebook

[Struts] Tutorial ?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #200747 Reply

    lavielle
    Member

    Hi,

    I did not find help about Struts in MyEclipse.
    Is it possible to have a demo or a tutorial ? 😉

    Thanks a lot in advance,

    Nicolas

    #200748 Reply

    support-michael
    Keymaster

    Sorry! A demo and docs are still in the works and will be available very shortly. I expect early next week for the materials to start rolling out.

    Michael
    MyEclipse Support

    #201335 Reply

    invantix
    Member

    @support wrote:

    Sorry! A demo and docs are still in the works and will be available very shortly. I expect early next week for the materials to start rolling out.

    Michael
    MyEclipse Support

    Any Progress here? I am starting a new project. I was using easyStruts last project but would like to start this project off with the myEclipse struts tools. I am not sure where to start. I see “New struts module” but that asks for a struts project. I do not see how to create a struts project.

    Can you just send/post a quick start 10 steps getting started thingy.

    Thanks,

    Chris

    #201336 Reply

    support-michael
    Keymaster

    Quick start –
    0) Configure the MyEclipse Struts preferences, see Windows menu>MyEclipse>J2EE>Web Project>Struts
    1) Create a MyEclipse web-project <myproject>
    2) Select <myproject> in Package Explorer view and select “Add Stuts Capabilities…” from right-click context menu
    3) Open struts-config.xml including outline view
    4) Select a top-level node in outline view, right-click context menu to open New <type> wizard (all type wizards are available if no node is selected)

    We should have a demo, docs, and an updated release (RC2) available in the next few days.

    Michael
    MyEclipse Support

    #201467 Reply

    Allan Marks
    Member

    The latest e-mail broadcast stated that 2.7RC2 includes wizards for creating Actions, ActionForms, etc. Can you tell me how to access / launch them?

    Thanks!
    Allan

    #201470 Reply

    Riyad Kalla
    Member

    Allan,
    A quick way to do this is via editing the struts-config.xml file. While you have it open, you can click in the outline view in the different root areas to add new forwards, actions and action beans. while this may not be as intuitive as creating the class first via File->New->Other->Web->Struts, its a start.

    Let me know if you run into any troubles.

    #201623 Reply

    stejankar
    Member

    Hi,

    As you said in above reply regarding creating the struts action, forms,etc , we can create using File->New->Other->Web->Struts. But if I go through this path I get only ‘Struts Module’. That means I can only create Struts module. Can you tell If I have to do any settings.
    I am using Eclipse 2.1 and MyEclipse 2.7RC1

    Thanks in advance

    Sanjay

    #201634 Reply

    Riyad Kalla
    Member

    Sanjay,
    Actually my post was saying “the way TO create Actions, Forms, etc. is via right-clicking in the outline view of the struts-config file” and my comment was “this is NOT as intuitive as creating the class via File->New->etc.”, sorry that wasn’t clear, but you cannot create your action forms via the New file menu, you have to use the different sections of the struts-config outline view to create them.

    So for example, once you open struts-config, if you right click on the “Action Form” area, you will have an option to create a new action form, if you right click in the “Action” area, you will be able to create a new action, and so on.

    #201663 Reply

    invantix
    Member

    @support-rkalla wrote:

    Sanjay,

    So for example, once you open struts-config, if you right click on the “Action Form” area, you will have an option to create a new action form, if you right click in the “Action” area, you will be able to create a new action, and so on.

    This works for me but I have a few questions.

    How about editing an existing form-bean, action-mapping? I feel there is less chance of messing up the xml when our team members use the wizzard.

    Also form the flow layout I can click edit JSP (nice). I can not click edit to get to the action class for the .do which would be awesome. Is there a plan to make that connection?

    Thanks, Chris

    #201669 Reply

    Riyad Kalla
    Member

    Excellent suggestions, if there aren’t plans for it, there should be. I’ll forwad the message on to Scott/Michael.

    #201674 Reply

    support-michael
    Keymaster

    The unreleased struts features planned for 2.7 GA include:

    1) select and open editors on flow-view concepts
    2) access struts wizards from the context menus of the src and flow views
    3) ability to delete from the struts outline view

    Please keep the suggestions coming.

    Michael
    MyEclipse Support

    #201806 Reply

    Robert Varga
    Participant

    When I create actions and forms with the wizards, they are not inserted in the config file and hence into the flow view.

    I suppose this is because the appropriate sections of the struts-config.xml will be generated via xdoclet.

    However this needs a run for XDoclet and there is no documentation on how to set up xdoclet for generating Struts related stuff into the struts-config.xml in the project. Actually there is no documentation on setting up xdoclet to generate Struts related stuff at all.

    #201863 Reply

    support-michael
    Keymaster
Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: [Struts] Tutorial ?

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