Dear Andrew,
Thanx for ur answer. In fact, i didnot try to write my own code to test, just run the 
samples of Struts, I removed all Action Form Beans and Action classes of the example 
and modify struts-config.xml so that the screens just go forward as its logical flow, 
with no processing inside (by Action classes). I just want to build a correct flow of 
screens before insert processing code. But the error is sth like  "...action form null 
...." i dont remember exactly (i removed the modified apps, so cannot run again). Now 
I tried to write my own app and do as you said, but another error happens as in my 
mail with subject: SOS. How to solve this problem ????
Pls help me if you have any experience ab this.
Thanks
TRan


-----Original Message-----
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 3:52 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???


Well they look a little something like:

<action path="/fooListView" type="com.something.FooListAction">
</action>

We might be able to help a bit more if you clarified what you mean by 'not
successful'.

-----Original Message-----
From: Tran Nguyen Thanh Bao [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 16:40
To: Struts Users Mailing List
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to