- This topic has 12 replies, 7 voices, and was last updated 21 years, 3 months ago by
support-michael.
-
AuthorPosts
-
lavielleMemberHi,
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
support-michaelKeymasterSorry! 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
invantixMember@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 SupportAny 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
support-michaelKeymasterQuick 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
Allan MarksMemberThe 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
Riyad KallaMemberAllan,
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.
stejankarMemberHi,
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.7RC1Thanks in advance
Sanjay
Riyad KallaMemberSanjay,
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.
invantixMember@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
Riyad KallaMemberExcellent suggestions, if there aren’t plans for it, there should be. I’ll forwad the message on to Scott/Michael.
support-michaelKeymasterThe 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 viewPlease keep the suggestions coming.
Michael
MyEclipse SupportWhen 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.
support-michaelKeymasterPlease see https://www.genuitec.com/forums/topic/struts-wizards-in-3-7rc2-don-t-modify-the-struts-config-xml/ for a duplicate thread.
Michael
MyEclipse Support -
AuthorPosts