Ba?o, what kind of problem do you see? Here is example of action without actionForm
<action path="/nextYearReport" scope="request" type="org.glvnsjc.action.student.NextYearReportAction"><forward name="success" path="/nextYearReport.jsp?page=1" redirect="false" /></action> Note, there is no "name" attribute and make sure to setup the scope (the default is session, i think) My acction has no form, it create a List object and stick it into request object so that JSP can display ----- Original Message ----- From: "Tran Nguyen Thanh Bao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 1:40 AM Subject: RE: Action Form Bean required ??? Dear Andrew, Could u please send me your struts-config.xml file that you configure for some of your screens not to use form bean ??? I tried many times but not successful :( Thanks and Best Regards, TRANBAONGUYEN -----Original Message----- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:42 PM To: Struts Users Mailing List Subject: RE: Action Form Bean required ??? I am doing this for some of my screens - these being the listview screens - where Im not taking in much in the way of info from the user, and hadnt bothered to create an actionForm but just grabbed what I needed straight from the request. Your probably better off having an action form however - in most cases David's criticism is valid. One 'gotcha' with not using an actionform is when you are using multipart forms. Struts is nice enough to wrap multipart requests in a MultipartRequestWrapper with the POSTed parameters available *but* it populates this wrapper from the same method that populates the actionForm. No action form means no MultipartRequestWrapper population, which means request.getParameter will return null for all except those parameters appended to the url to which the form was submitted. Of course that only affects multipart forms which yourd only be using if that page needs file upload... -----Original Message----- From: David Chelimsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 19:20 To: Struts Users Mailing List Subject: Re: Action Form Bean required ??? You could access all of the form properties in your Action with request.getParameter("paramName"); but why would you ever do that? Using the rest of the framework without FormBeans is like pushing your car down the street instead of just starting the engine.... Tran Nguyen Thanh Bao wrote: >Dear all, > >I'm a new user of Struts. If I dont have Action Form Bean for each form in my application, is there any problem ? I've already tried to test with no Action Form Bean (basing on Struts examples, just remove Action Form Bean), but not successful. >Can I do that in some way ? Pls give me some advises from you, experienced users :) > >Best Regards, >TRANBAONGUYEN > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]