JBoss.orgCommunity Documentation
We are done with designing the application through the diagram. Now we need to write code for the action component. We also need to write an action class for the /greeting mapping along with a FormBean. To aid in the coding phase, JBoss Developer Studio can generate Java class stubs for all of the components shown in the diagram.
Switch back to the diagram, by selecting the Diagram tab at the bottom of the editor window
Right-click a blank space in the diagram and select Generate Java Code
Leave everything as is in the dialog box and click Generate
You should see a screen that says:
Generated classes: 2
Actions: 1
Form beans: 1
Click Finish
The Java files will be generated in a Package Explorer view under the "StrutsHello" node. One Action stub and one FormBean stub will have been generated.
→ folder that you can see in the