All you have to do is write a class (adaptor design pattern) that performs
the necessary conversions in a method that accepts the ActionForm as a
parameter from the ActionClass, then passes the returned data back to the
ActionClass.  The ActionClass then populates/repopulates the
ActionForm/Javabean of choice.

Mark

-----Original Message-----
From: Rao, Nagraj [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 12:32 PM

What if the OutPut needs some formatting /or conversions ?
I recommend a Adaptor/s associatd with the Action classes which does all the
necessary conversions (to and from the business layer) and then return the
bean to the Action (and in turn to the request/jsp) The Adaptor would thus
do 2 things: 1)In comming transform the request (form) in to the format
which is needed to call the Service layer 2)Get data out of the service
layer and format it as the application front end depends (JSP,XML WAP..) and
stuff data in to either the form or an output bean. The output bean being
really dumb and whose only job is to paint/help render the JSP.

-Naggi



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

Reply via email to