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
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
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
>
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
4 matches
Mail list logo