Thanks Robin,
Though we can have hidden fields which sets the action to take place and
branch accordingly, but i was wondering if you could have different methods
which perform save/edit/delete etc., in the action class which can be
defined into the struts-config.xml under the action mappings, so you just
deal with the text file...Anything on these lines...

-Venkat

-----Original Message-----
From: Robin Whitley [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 2:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!!!


I have combined the EditRegistrationAction and SaveRegistrationAction into
one class.  On my jsp, I have a hidden field called action, which indicates
what type of action, Create, Update, Save coming into the action class.  I
branch in the perform method accordingly.

Hope that helps,

Robin

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