I definitely like parts of this idea. Assuming we use the Account bean, what if we change the AccountManager to:
public class AccountManager { private Account account ; public void setAccount(Account account) { ... } public void entryPoint() { ... perform business logic here } } And this for the UI tags: <ui:textfield label="'First name'" name="account.firstname"/> <ui:textfield label="'Last name'" name="account.lastname"/> <ui:textfield label="'Email'" name="account.email"/> <ui:textfield label="'Username'" name="account.username"/> M > > ################################################## > > Model ( a POJO java bean): > > > > public class Account > > { > > protected String firstname; > > protected String lastname; > > protected String email; > > protected String username; > > > > //getter and setter methods... > > > > } > > > > ################################################# > > Business Logic ( A POJO java bean): > > > > public class AccountManager > > { > > /** > > * > > * @ return long, account balance, to illustrate return > > */ > > public long createAccount(Account account) > > { > > ... > > } > > > > // other methods... > > } -- Matt Ho Principal Indigo Egg, Inc. http://www.indigoegg.com/ > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of > Jason Carreira > Sent: Thursday, February 20, 2003 6:25 AM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] FW: from a ww user's view > > I don't think this is doable. Webwork isn't there to read your mind :-) > > > -----Original Message----- > > From: Jason Carreira > > Sent: Thursday, February 20, 2003 9:03 AM > > To: [EMAIL PROTECTED] > > Subject: [OS-webwork] FW: from a ww user's view > > > > > > > > > > -----Original Message----- > > From: guty [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 1:25 AM > > To: Jason Carreira > > Subject: from a ww user's view > > > > > > Dear jason, I have problems with my mail server. Please > > help me transfer this mail to the mail list. Thank you:) > > > > ------------------------------------------------------- > > > > I am not familiar with detail mechanism of WW. But from > > a ww user's view, I'd like to see WW like this: > > > > ################################################## > > Model ( a POJO java bean): > > > > public class Account > > { > > protected String firstname; > > protected String lastname; > > protected String email; > > protected String username; > > > > //getter and setter methods... > > > > } > > > > ################################################# > > Business Logic ( A POJO java bean): > > > > public class AccountManager > > { > > /** > > * > > * @ return long, account balance, to illustrate return > > */ > > public long createAccount(Account account) > > { > > ... > > } > > > > // other methods... > > } > > > > ################################################### > > View ( webwork taglib with multipal view techs includes JSP > > and velocity) > > > > <form action="<webwork:url page="AccountManager.createAccount"/>"> > > <ui:textfield label="'First name'" name="'param[0].firstname'"/> > > <ui:textfield label="'Last name'" name="'param[0].lastname'"/> > > <ui:textfield label="'Email'" name="'param[0].email'"/> > > <ui:textfield label="'Username'" > > name="'param[0].username'"/> > > </form> > > > > ################################################### > > UI Control, or UI workflow ( custom xml integrate with WW EL) > > > > <action name="AccountManager.createAccount"> > > <view exception="PermissionException">Login.jsp</view> > > <view el="'if test="'return' >1000 > > "">BigAccountSummary.jsp</view> <view el="'if test="'return' > > <=1000 "">SmallAccountSummary.jsp</view> </action> > > > > Gu Tianyang > > [EMAIL PROTECTED] > > > > > > > > > > > > ========================== > > 263电子邮件-信赖邮自专业 > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an > > edge. The most comprehensive and flexible code editor you can > > use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE > > 30-Day Trial. www.slickedit.com/sourceforge > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork