It all "Depends"........
If the business logic for each operation (CRUD) is complex then better use 1 jsp and one action. Otherwise go for the other one (one class which handles all CRUD operations) ..... However If you have designed and developed your business layer very well then either of the above should be fine ..... Regards -----Original Message----- From: meeboo [mailto:[EMAIL PROTECTED] Sent: 11 June 2007 13:52 To: user@struts.apache.org Subject: [S2] Design patterns Hey all How do you build up your Struts 2 applications architecture wise? Say for instance that you have a User model object. Do you create an action class (e.g. UserAction.java) for all User actions, or do you separate them into UpdateUser.java/CreateUser.java etc...? We thought Struts 2 was a big mess at first since it allows you to construct your web-tier in virtually any way you want. But after a couple of weeks we started using a "pattern" where each JSP page has its own java action class and all action classes inherit from a superclass which implements SessionAware, ValidationAware and so forth. Do you think this is a good approach? It's worked great for us so far. Cheers! -- View this message in context: http://www.nabble.com/-S2--Design-patterns-tf3901386.html#a11059979 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]