You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jaarthy <aa...@yahoo.com> on 2008/10/13 22:36:38 UTC
Interceptor
I am using struts2. I wrote an interceptor for validating the Captcha and
thereby inserting the registration details in the database in my action,but
when I try to retrieve the values entered in the registratiion form,I get
Null pointer Exception.Action class works fine when interceptor is not
present.
Any suggestions as where am I going wrong?
--
View this message in context: http://www.nabble.com/Interceptor-tp19962438p19962438.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Interceptor
Posted by Martin Gainty <mg...@hotmail.com>.
can you post your code?
thanks,
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Mon, 13 Oct 2008 15:30:44 -0700
> From: aarthyjava@yahoo.com
> To: user@struts.apache.org
> Subject: Re: Interceptor
>
>
> Interceptor works fine.Null pointer Exception is thrown only in the action.
>
> newton.dave wrote:
> >
> > --- On Mon, 10/13/08, Jaarthy wrote:
> >> I am using struts2. I wrote an interceptor for validating the Captcha
> >> and thereby inserting the registration details in the database in my
> >> action,but when I try to retrieve the values entered in the
> >> registratiion form,I get Null pointer Exception.Action class works fine
> >> when interceptor is not present. Any suggestions as where am I going
> >> wrong?
> >
> > It's probably something in the interceptor.
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Interceptor-tp19962438p19964136.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Re: Interceptor
Posted by Dave Newton <ne...@yahoo.com>.
--- On Mon, 10/13/08, Jaarthy wrote:
> Interceptor works fine.Null pointer Exception is thrown only
> in the action.
The point was that with zero information it's impossible to help you in any way. (And if everything works without the interceptor...)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Interceptor
Posted by Jaarthy <aa...@yahoo.com>.
Interceptor works fine.Null pointer Exception is thrown only in the action.
newton.dave wrote:
>
> --- On Mon, 10/13/08, Jaarthy wrote:
>> I am using struts2. I wrote an interceptor for validating the Captcha
>> and thereby inserting the registration details in the database in my
>> action,but when I try to retrieve the values entered in the
>> registratiion form,I get Null pointer Exception.Action class works fine
>> when interceptor is not present. Any suggestions as where am I going
>> wrong?
>
> It's probably something in the interceptor.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Interceptor-tp19962438p19964136.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Interceptor
Posted by Dave Newton <ne...@yahoo.com>.
--- On Mon, 10/13/08, Jaarthy wrote:
> I am using struts2. I wrote an interceptor for validating the Captcha
> and thereby inserting the registration details in the database in my
> action,but when I try to retrieve the values entered in the
> registratiion form,I get Null pointer Exception.Action class works fine
> when interceptor is not present. Any suggestions as where am I going
> wrong?
It's probably something in the interceptor.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org