Hi Roger,

On 20/04/07, Roger Varley <[EMAIL PROTECTED]> wrote:
Hi

Can someone please explain the point of the Preparable interceptor and
prepare(). What do I gain over doing everything in the execute()
method of my action. Obviously there must be some advantage otherwise
Preparable wouldn't be there, but I can't see it at the moment.

I'm no Struts-guru, but I've been using Struts2 for the last couple of
months, and the main advantage I found in using the Preparable
interface was the ability to execute a certain piece of code whatever
the method you call in the action. However, if the execute() method is
the only one you are calling, prepare() is kind of useless then. I
could have missed other features of the Preparable interface, though.

HTH,
alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to