-----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