RE: Code reduction for Action classes

2006-10-11 Thread Givler, Eric
IL PROTECTED] Sent: Wednesday, October 11, 2006 3:44 PM To: Struts Users Mailing List Subject: Re: Code reduction for Action classes 1)rewrite your save() logic to invoke form.getAction() and test on the returned parameter if(form.getAction() == "save") { //do all your save logic he

Re: Code reduction for Action classes

2006-10-11 Thread Martin Gainty
PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, October 11, 2006 2:32 PM Subject: Code reduction for Action classes > I've been trying to get the hang of struts now for the past few months, and > am wondering how people write "re-usable" base classes

Re: Code reduction for Action classes

2006-10-11 Thread Martin Gainty
Eric Take a look at the bottom save method HTH Martin -- > I've been trying to get the hang of struts now for the past few months, and > am wondering how people write "re-usable" base classes for Struts. If you > have the time, I'd really appreciate your thoughts on this - bear with me, as >

Code reduction for Action classes

2006-10-11 Thread Givler, Eric
I've been trying to get the hang of struts now for the past few months, and am wondering how people write "re-usable" base classes for Struts. If you have the time, I'd really appreciate your thoughts on this - bear with me, as it's a lot of reading: My actions tend to be "similar" but making