On Tue, Aug 17, 2004 at 01:46:34PM +0200, Tobias Eriksson wrote:
: I'm trying to call a method in a BEAN that returns an array of objects
: that I need to enumerate on my page. But I don't want to access a
: property with EL, like this e.g. ${mybean.names} ) as I need to provide
: an argument to the method.
What about a small redesign (Page Controller, MVC, whatever) such that
all parameter handling is done within a servlet that dispatches to the
JSP for display?
Clean design calls for using JSPs just for presentation; they should
have to do just enough logic to format the data they've been given.
Once you have to pass a numeric parameter to a method, you must concern
yourself with bounds checking; in turn, you must handle errors, which
leads to its own can of worms.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]