struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghupathy, Gurumoorthy" <>
Subject RE: [S2] Design patterns
Date Mon, 11 Jun 2007 12:59:33 GMT
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 ..... 


-----Original Message-----
From: meeboo [] 
Sent: 11 June 2007 13:52
Subject: [S2] Design patterns

Hey all

How do you build up your Struts 2 applications architecture wise? Say
instance that you have a User model object. Do you create an action
(e.g. for all User actions, or do you separate them
into etc...? We thought Struts 2 was a big
at first since it allows you to construct your web-tier in virtually any
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
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

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message