struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis" <tim...@xs4all.nl>
Subject Re: Where to build dropdown lists?
Date Tue, 15 Jul 2003 12:42:34 GMT

"Rick Reumann" <r@reumann.net> wrote in message
news:20030715084024.55bd6514.r@reumann.net...
> On Tue, Jul 15,'03 (01:56 PM GMT-0100), Dichotomy wrote:
>
> > My solution, which is perhaps not the most efficient memory-wise, is
> > to simply put it in (and retrieve it from) the session rather than the
> > request.
>
> I agree this is the best solution (using Session or Application scope).
> I brought this topic up a long time ago and ultimately you really have
> to use Session or Application scope if you plan to use Validation (or
> else settle for headaches getting it to work correctly with Request
> scope). If you use just Request scope you end up having to do
> some'crazier'(aka annoying) things to get the lists of beans for the
> drop downs to reset when validation fails. Search of the archives if you
> insist on using Request scope for the form lists and you'll find ways to
> do it, but none of them seemed worth the hassle(imo). If someone out
> there still has a nice clean way to get these request scope Lists back
> in scope after validation fails, I'd be interested in your solution.
>
> --
> Rick

What about the client side validation feature in the validator framework.
This way the you won't have to populate the list at all if validation
happens to fail because the form will not post unless it's valid.

Dennis




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


Mime
View raw message