hi all,

 We use Frames in our application. We have had this problem a we use
different approach.
 We suppose the form data is ONLY needed for the action, so the action
executes and change the model as needed. The action decides which is the
next page, and if it can have frames it sets a variable "next" in session,
which indicates what the frames that must be loades in this way:

 Every frame in frameset is redirected to an special action frames.do with
two parameters: the place where the frame is loaded and the "next" variable.
For example:

<frameset ID="vis" cols="261,*" border="0" framespacing="1">
    <frame name="bottomLeft"
    <frame name="bottomRight"
src="frames.do?position=frameTop&action=<session:attribute name="next"/>">

  And we have implemented the frames.do action to know which JSP must be
loaded, with parameters position and next. In fact, the page that must be
loaded is written in struts-config.xml in this way:

   <action path="/frames" type="package.FramesAction" name="framesForm"
      <forward name="frameTop-next1" contextRelative="true"
      <forward name="frameTop-next2" contextRelative="true"

        So the frames.do makes a forward to the String created with "position+next"
(the two parameter of frames.do) and we can establish the JSP in the xml

        Is this a complicated way of doing this? Sure,... above all because of my
poor english :-)


                Jose R. Díaz

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to