You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jayakumar ala <al...@gmail.com> on 2010/04/01 20:04:50 UTC

SImple question on bypassing prepare

Hi All,
 I am new to struts2 and need small help on how i can bypass calling prepare
method before any other method. In my case i am trying to call customized
method before prepare method to set some values. I did set method in my
struts.xml but it is still calling prepare(). I want this prepare to be
called after calling my customized method.
Any help is appreciated.

Thanks

Re: SImple question on bypassing prepare

Posted by Chris Pratt <th...@gmail.com>.
What is it that calls your customized set method?  If it's form parameter
data, move the prepare interceptor below the params interceptor in your
interceptor stack.
  (*Chris*)

On Thu, Apr 1, 2010 at 11:04 AM, jayakumar ala <al...@gmail.com> wrote:

> Hi All,
>  I am new to struts2 and need small help on how i can bypass calling
> prepare
> method before any other method. In my case i am trying to call customized
> method before prepare method to set some values. I did set method in my
> struts.xml but it is still calling prepare(). I want this prepare to be
> called after calling my customized method.
> Any help is appreciated.
>
> Thanks
>

Re: SImple question on bypassing prepare

Posted by jayakumar ala <al...@gmail.com>.
Thanks... I got to know how to handle this.

On Thu, Apr 1, 2010 at 1:21 PM, Kawczynski, David <
david_kawczynski@merck.com> wrote:

> Extend ActionSupport or one of its subclasses, override the
> prepare( ) method, to call your customized method, then call
> super.prepare( ).
>
> > -----Original Message-----
> > From: jayakumar ala [mailto:alajay123@gmail.com]
> > Sent: Thursday, April 01, 2010 2:05 PM
> > To: Struts Users Mailing List
> > Subject: SImple question on bypassing prepare
> >
> > Hi All,
> >  I am new to struts2 and need small help on how i can bypass
> > calling prepare
> > method before any other method. In my case i am trying to
> > call customized
> > method before prepare method to set some values. I did set
> > method in my
> > struts.xml but it is still calling prepare(). I want this
> > prepare to be
> > called after calling my customized method.
> > Any help is appreciated.
> >
> > Thanks
> >
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New
> Jersey, USA 08889), and/or its affiliates Direct contact information for
> affiliates is available at http://www.merck.com/contact/contacts.html)
> that may be confidential, proprietary copyrighted and/or legally privileged.
> It is intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

RE: SImple question on bypassing prepare

Posted by "Kawczynski, David" <da...@merck.com>.
Extend ActionSupport or one of its subclasses, override the 
prepare( ) method, to call your customized method, then call
super.prepare( ).

> -----Original Message-----
> From: jayakumar ala [mailto:alajay123@gmail.com] 
> Sent: Thursday, April 01, 2010 2:05 PM
> To: Struts Users Mailing List
> Subject: SImple question on bypassing prepare
> 
> Hi All,
>  I am new to struts2 and need small help on how i can bypass 
> calling prepare
> method before any other method. In my case i am trying to 
> call customized
> method before prepare method to set some values. I did set 
> method in my
> struts.xml but it is still calling prepare(). I want this 
> prepare to be
> called after calling my customized method.
> Any help is appreciated.
> 
> Thanks
> 
Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates Direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org