Thanks simon, robin

for all the help!!!

Venkat.

-----Original Message-----
From: Simon Sadedin [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 8:19 PM
To: [EMAIL PROTECTED]
Subject: RE: Help!!!


Hi Venkat,

I would encourage you to consider (if you haven't already) keeping your
actions in separate classes and possibly using inheritance or other
means to extract the common portions.  This is more in line with the
design intent of struts, and makes cleaner, more maintainable code.

For example you can have your EditRegistrationAction and
SaveRegistrationAction extend a common RegistrationAction.

Cheers & good luck!

Simon Sadedin.

> -----Original Message-----
> From: Venkat Jonnalagadda [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 5:34 PM
> To: Struts User (E-mail)
> Subject: Help!!!
> 
> 
> Hi,
>       i am new to struts and i am going through the struts-example
> application. in the struts-config.xml under the action 
> mappings section, for
> every action there is a action class, for same domain (lets say for
> registration, there is a EditRegistrationAction and 
> SaveRegistrationAction
> and same with subscription too). is there a way to couple the 
> edit/save and
> may be delete and someother actions into the same action 
> class instead of
> having one for every operation...
> 
> Any ideas anybody?
> 
> -Venkat
> 

Reply via email to