Hi !

I'm slowly becoming familiar with struts.

I'm now faced with the following problem:
I have a form in the middle of my application which among other
things sports a dynamically populated form:select.

>From what I've read in the documentation I'm supposed to read the
appropriate information upon Logon (or while navigating along the
pages) and store in beans added as attributes to the session/request.

While this certainly works I'm not yet fully convinced I'll like
this for two reasons.
1) While the user moves along the dynamic info might change without
   it actually being used. This imposes IMO unnecessary load on the
   underlying DB which could and should be avoided.
2) For convenience and useability reasons the user can navigate the
   pages through some menus realized in JavaScript. While clicking
   his way through the decisiontree there is no interaction with the
   Servlet Engine.
   Eventually the user will come to a point where a full blown
   ActionForm/Action part is required which now need initialization
   according to the navigation done prior.

Is there a way to achieve this other than creating some general
helper-beans that solve this ?

Or in other words: does struts allow for some convenient means
to initialize a page upon creation ?  Some kind of PreAction ?

Thank you,
Michael

Reply via email to