this is good information can someone update the doc @ http://struts.apache.org/2.0.11/docs/prepare-interceptor.html
Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 23 Jun 2009 18:25:10 -0400 > Subject: Getting method or action from within prepare() method > From: greg.lindh...@gmail.com > To: user@struts.apache.org > > I started writing this as a question then I discovered the answer so thought > I would share it as FYI. > > Question: > I have Preparable CRUD actions that have multiple action methods like > doNew(), doCreate(), doEdit(), doUpdate(), doDelete(). > > I have found at least one case where I need to know, in the prepare() > method, which action method is going to be called. > How do you find out? > > Answer: > You can add multiple prepare{METHOD}() methods like prepareDoDelete(), > prepareDoUpdate() and the one matching the action method will be called > first before the prepare() method. _________________________________________________________________ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009