struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Garcia" <jogaco...@gmail.com>
Subject Re: conversion error repopulation not working
Date Thu, 31 May 2012 08:04:24 GMT
Ok. Sorry.
Fixed the example to match the real situation. Prepare() will only execute
now if the request is a get method.

Cheers,
Josep


On Wed, May 30, 2012 at 3:45 PM, Łukasz Lenart <lukasz.lenart@googlemail.com
> wrote:

> 2012/5/29 J. Garcia <jogaco.en@gmail.com>:
> > Attached an example, generated from struts2 archetype and modified to
> > reproduce the situation.
> >
> > - run with mvn jetty:run. I use maven 2.2.1.
> > - on browser, type: localhost:8080/struts-test/example/Login
> > - you'll see a form, with formatted integer.
> > - modify the integer like this: AAA
> > - submit. An error msg informing of conversion error is shown. However,
> the
> > value AAA is not maintained. Instead, the current bean value is shown.
>
> But you use Preparable each time, and prepare overrides what was sent
> by user. I'm not sure if I understood that correctly but the same
> works fine in showcase application.
>
>
> Regards
> --
> Łukasz
> mobile +48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>

Mime
View raw message