You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Derrick Koes <De...@skillsoft.com> on 2007/02/22 23:21:00 UTC

struts 1.2.9 multiple session scoped action form bean usage by single jsp

Struts 1.2.9
 
I have 2 session scoped form beans which share a getter method.  I would
like to re-use a particular jsp in this case as well.  However, what I'm
finding is that the first session scoped form encountered will be the
one the jsp gets its values from.  This may well not be the form used by
the action.  Thus, resulting in incorrect values.
 
I have a solution to the problem.  Basically, copy the jsp which I'm
attempting to re-use and identify the form bean by name using dot
notation with the field, but this seems a like it adds unnecessary
maintenance (have to maintain 2 copies of essentially the same jsp).
 
Is there a simple solution which I may be missing at the moment?
 
Thanks,
Derrick