I'm designing a set of beans to allow bean calls within a JSP page.  The
bean instance has many attributes/properties.  So - what's the best way
to design bean methods - pass in many parameters for the action method
to work off of, or rely on setter methods prior to invoking the bean
action method

Ie - is it better to do:

<% mybean.doaction(" param1 param2 param3 ... "); %>

or better to do:

<% mybean.setParam1("param1"); %>
<% mybean.setParam2("param2"); %>
....
<% mybean.setParam("paramn"); %>
<% bean.doaction(); %>

What's the "best practice" or suggested practice for doing something
like this?

Thanks for the feedback - I know Java well, but am still learning with
respect to beans and JSP.

Dave Hecksel
Axtive Software Corporation
(214) 880-4820

---------------------------

e.Business Personalization Made e.Z

===> For Interactive e.Business Personalization Solutions, <===
===> check out http://www.axtive.com  <===

begin:          vcard
fn:             David  Hecksel
n:              Hecksel;David
org:            Axtive Software Corporation
adr:            3100 Mckinnon;;Suite 800;Dallas;Texas;75201;USA
email;internet: [EMAIL PROTECTED]
title:          Chief Technology Officer
tel;work:       (214) 880-4820
tel;fax:        (214) 880-4810
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard

Reply via email to