struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier THIERRY" <olivier.thie...@gmail.com>
Subject Re: [S2] Can't make validation work
Date Mon, 28 May 2007 14:41:09 GMT
Well, in my JSP I have lists (s:select tag) that are filled by the init
method of my action.
So when I redirect to the JSP, it crashes because the lists in my action
have not been initialized.
Can the prepare method be used to do this ?


2007/5/28, Dave Newton <newton.dave@yahoo.com>:
>
> --- Olivier THIERRY <olivier.thierry@gmail.com> wrote:
> > Well, no ... I thought actions could be POJOs ...
>
> They can.
>
> If you don't mind losing all the functionality or
> implementing it yourself.
>
> > <result name="input">
> >   /absences/initCreerDemandeAbsence.action
> > </result>
>
> Why wouldn't you forward to the input JSP?
>
> In any case, particularly when there's only one "real"
> method in the action, the Preparable interface might
> be a better idea... and can eliminate some manual
> busywork.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message