If you only want to use a DynaActionForm, you could use TilesController and
set the list in the form using BeanUtils.
In you tiles controller get the ActionForm for the module and set the
corresponding form property.
ActionConfig actionConfig = (ActionConfig)request.getAttribute(
Globals.MAPPIN
What about keeping the list in form-bean? It is DynaForm, so you can
populate using form.set("mylist", mylisy); and retrieve back using
${form.map.mylist} (or RT equivalent of it).
If you put in session, you have to take care of removal. In this case
Struts will take care of it and recycle it.
O
/--\
| Action | populates list
\--/
|
V
/--\
| JSP/Tiles|
\--/
The list is not being populated when validation fails as framework is
throwing back request to JSP/Tiles without running the population
code. This is very well expected beh
I have an Action which sets a populated List in a DynaValidatorForm Bean.
The "input" of the ActionMapping in the struts-config simply points back to
the .jsp page (actually a tile def) and uses to print out the
error messages.
If no validation problems occur, there aren't any problems.
However
4 matches
Mail list logo