Hi all,

I'm trying to use struts with frame but the problem I have is that forms
disappear from the request scope when I forward to an jsp containing a
frameset to other actions like this:

<!-- jsp containing form submitting to someAction -->
<action path="/somePage" forward="/WEB-INF/pages/some-page.jsp"/>

<action path="/someAction"
           input="/somePage.do"          
          name="SomeForm" scope="request"
            type="com.mycompany.actions.SomeAction">
      <forward name="success" path="/framesetPage.do"/>
      <forward name="failure" path="/somePage.do"/>
    </action>

<!-- jsp containing frameset -->
<action path="/framesetPage"
forward="/WEB-INF/pages/frameset-page.jsp"/>

The frameset-jsp.page contains a frameset like this:

<frameset framespacing="0" rows="50,*,">
  <html:frame frameborder="1" frameName="top-frame"
action="topFrame.do"/>
  <html:frame frameborder="1" frameName="bottom-frame"
action="bottomFrame.do"/>
</frameset>

Now in the actions topFrame and bottomFrame the form SomeForm does not
appear in the request scope. Why is this? Rightnow I solved it by
putting SomeForm in the session scope is that the only solution? I don't
think that is a clean one anyway.

Thanks for any help and regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 2818080
http://www.x-hive.com 

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

Reply via email to