Why dont you create a BaseAction Bean and have your forms extend that
actionbean and define the parameters of that form on the baseform. then eact
URLBound action bean can handle the event their own way
Just my toughts
--- On Thu, 10/9/09, Fabio Fonseca <[email protected]> wrote:
From: Fabio Fonseca <[email protected]>
Subject: [Stripes-users] Getting form fields from a request
To: "Stripes Users List" <[email protected]>
Date: Thursday, 10 September, 2009, 4:29 PM
Hello all!
I'm trying to implement a simple search field which will be available in every
page of my app, minding the context (as in ${actionBean.class} context). The
form will be aware of the kind of page it is included and will return the
results accordingly. The search form has 3 fields which will be used as
parameters for the search.
The question is: In the actionBean that will receive the form POST should I
have all the form's fields declared as parameters? In the contact form examples
from the book, the form's fields are binded to properties available from within
the Contact actionBean class.
But I would like to let me actionBeans "free" from the form input's names,
parsing the received form and choosing the methods that will query the DB as I
which.
Is possible to do something like that? or should I have the form's fields also
declared as parameters inside the actionBeans?
cheers!
Fabio
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
-----Inline Attachment Follows-----
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users