You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "srinivasa_v ." <sr...@sify.com> on 2008/12/16 06:39:27 UTC

preparable inceptor and validation

Hi All,
I have sistutation  where I need to return to entryForm, if there any
validation errors,but before going to entryform for second time,
I need to get some prepopulated data , for this I am  using preparable
inceptor,

I am able to get my prepopulated data fine,
but the I am not able to see my action errors,

If I  try to remove preparable inceptor , it working fine,and no
prepopulated data

can any one help me

regards
srini..

Re: preparable inceptor and validation

Posted by "srinivasa_v ." <sr...@sify.com>.
Hi,
Can u explain me in more detail.



On Tue, Dec 16, 2008 at 7:37 PM, Andy Sykes <a....@ucl.ac.uk> wrote:

> Hi,
>
> My simple solution to the same problem was to check if any validation
> errors had occurred at the end of the validation method [with
> hasFieldErrors()], then call my prepareXXX method from there.
>
>
>
> On 16 Dec 2008, at 05:39, srinivasa_v . wrote:
>
> Hi All,
>> I have sistutation  where I need to return to entryForm, if there any
>> validation errors,but before going to entryform for second time,
>> I need to get some prepopulated data , for this I am  using preparable
>> inceptor,
>>
>> I am able to get my prepopulated data fine,
>> but the I am not able to see my action errors,
>>
>> If I  try to remove preparable inceptor , it working fine,and no
>> prepopulated data
>>
>> can any one help me
>>
>> regards
>> srini..
>>
>
>
>  ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: preparable inceptor and validation

Posted by Andy Sykes <a....@ucl.ac.uk>.
Hi,

My simple solution to the same problem was to check if any validation  
errors had occurred at the end of the validation method [with  
hasFieldErrors()], then call my prepareXXX method from there.


On 16 Dec 2008, at 05:39, srinivasa_v . wrote:

> Hi All,
> I have sistutation  where I need to return to entryForm, if there any
> validation errors,but before going to entryform for second time,
> I need to get some prepopulated data , for this I am  using preparable
> inceptor,
>
> I am able to get my prepopulated data fine,
> but the I am not able to see my action errors,
>
> If I  try to remove preparable inceptor , it working fine,and no
> prepopulated data
>
> can any one help me
>
> regards
> srini..


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


Re: preparable inceptor and validation

Posted by Lukasz Lenart <lu...@googlemail.com>.
Do you use custom interceptor stack? Please check that [1]

[1] http://struts.apache.org/2.x/docs/why-isnt-our-prepare-interceptor-being-executed.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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