In the MyEclipse IDE, right-click on the web application, select MyEclipse, Add Struts capabilities and select version 1.2.
Bring up the struts-config.xml and right-click on the MyEclipse configuration wizard. Choose new Form, Action and JSP.
Enter library Use case and enter libraryForm for the form name; select Dynamic FormBean and the Dynamic Type should be DynaActionForm.
Enter Form Properties of title, author, id, books and operation and on JSP tab check the Create JSP form checkbox to ask the wizard to generate a JSP.
In the action accept the defaults but in Forwards enter a success value to return to our generated JSP, form/library.jsp.
That's it. We now have a JSP and Struts action created for us to edit which we will do next.
See what I did here
|