When you say struts complained... Can you be a little more informative? also, if you could paste in the relevant parts of the Struts-config.xml it would be great...
Here are some of mine... (Also, if you are using Struts 1.1, get the Struts-console... <form-beans> <form-bean name="drillDownReportForm" type="com.ebind.twizard.reports.drillDownReportForm" /> </form-beans> <action-mappings> <action path="/drillDownReport" parameter="" type="com.ebind.twizard.reports.drillDownReportAction" name="drillDownReportForm" scope="request" validate="true" input="/WEB-INF/jsp/twizard/reports/drilldown.jsp"> <set-property property="name" value="drillDownReportForm" /> <set-property property="scope" value="request" /> <forward name="continue" path="twizard.drilldown" redirect="false" /> <forward name="success_area" path="twizard.reportdisplay.area" redirect="false" /> <forward name="success_group" path="twizard.reportdisplay.group" redirect="false" /> </action> <action path="/index" parameter="" unknown="true" forward="twizard.mainmenu"> <forward name="success" path="twizard.mainmenu" redirect="false" /> </action> <action path="/todo" parameter="" forward="twizard.todo" /> <action path="/login" parameter="" forward="global.login" /> -----Original Message----- From: tbaskan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:10 PM To: struts-user Subject: RE: Starter question When I tried <action> without name property, Struts complained. Can you give me a sample <action> struts-config element? Probably I'm missing something. /tb. On Thu, 2002-06-13 at 20:51, [EMAIL PROTECTED] wrote: > > Unless you are submitting the request from a form you do not need an > actionform that I know of. > > If you are always displaying the same list i think you want to: > > Invoke the action > The actions perform method should get a collection of beans representing > each row in the database. > You then stuff the collection into an attribute in the session > the forward action should send you to the JSP page to display it where > you iterate through it using the html taglib in struts... > > This is in a nutshell and does not necessarily cover good practices but > it will get you working > > > > > > -----Original Message----- > From: tbaskan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 1:26 PM > To: struts-user > Subject: Starter question > > > Hello everyone, > > I'm a beginner for Struts and can't still figure out how to do simple > things with the framework. > > My difficulties are generally related with MVC, I think. > > For traning, I want to accomplish probably the easiest dynamic page for > a web application: a page that shows some portion of a database table. > > To my understanding, I need the following: > 1. a model object must have a static method that fetches rows > from the database table and puts them in a Collection object. > 2. a JSP page containing <logic:iterate> tags to iterate over this > Collection. > > Now.. My real problem is how to attach these together. > > I decided to do this with an Action. I mean, when user hits a page like > /myapp/groupList.do, the Action's perform method gets the Collection > from model and sets it as a PageAttribute. But failed. Every <action> in > configuration file needs a "name" property, which is an ActionForm. Do I > need an ActionForm in this case? > > I need some enlightening. > > /tb. > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>