Re: Using Frames in Struts
Hello Jacob, Yes I am not sure in how 2 sessions will be initiated. Can u please elobrate on the point Alok - Original Message - From: Jacob Hookom [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:24 PM Subject: Re: Using Frames in Struts Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:43 AM Subject: Re: Using Frames in Struts Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Using Frames in Struts
I remember the issue coming up before where if two requests were made at the same time to the server, you would somehow end up with two sessions. The recommendation of that thread, if I remember correctly, was to have a login page or an action that initializes a session, then forwards to the frames page once that single session is set. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 2:03 AM Subject: Re: Using Frames in Struts Hello Jacob, Yes I am not sure in how 2 sessions will be initiated. Can u please elobrate on the point Alok - Original Message - From: Jacob Hookom [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:24 PM Subject: Re: Using Frames in Struts Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:43 AM Subject: Re: Using Frames in Struts Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Using Frames in Struts
Hello Jacob, Thanx for the reply. I will explain you the whole app. flow 1) The user selects an option on a page from where the request is forwarded to a action class. 2) In the action class a hashtable of Categories is loaded and is forwarded to the a Frameset that contains 2 frames one which shows 2 select box and the 2 frame displays the result on selecting a item in the second select box. 3) Now the user is asked to select a category on selecting a category a the request is forwarded via a javascript to a categoryAction class. 4) In CategoryAction class all the assortments for the selected Category are loaded and the request is forwarded to a the same main frame which contains the 2 frames. 5) On selection of the assortment the request is forwarded to AssortmentAction via javascript where all the sub Assortments are selected and the result have to be displayed in the second frame. Please Guide me with it. the javascript code:: unction ChangeCategory() { document.categoriesForm.submit(); } function ChangeAssortment() { assortmentForm.target=main; document.assortmentForm.submit(); } - Original Message - From: Jacob Hookom [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 1:37 PM Subject: Re: Using Frames in Struts I remember the issue coming up before where if two requests were made at the same time to the server, you would somehow end up with two sessions. The recommendation of that thread, if I remember correctly, was to have a login page or an action that initializes a session, then forwards to the frames page once that single session is set. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 2:03 AM Subject: Re: Using Frames in Struts Hello Jacob, Yes I am not sure in how 2 sessions will be initiated. Can u please elobrate on the point Alok - Original Message - From: Jacob Hookom [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:24 PM Subject: Re: Using Frames in Struts Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:43 AM Subject: Re: Using Frames in Struts Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference
Re: Using Frames in Struts
On Fri, 1 Nov 2002, Jacob Hookom wrote: Date: Fri, 1 Nov 2002 00:54:25 -0600 From: Jacob Hookom [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Using Frames in Struts Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. In every case I've experienced, all of the frames in a frameset are part of the same session, because they all live in the same window. You do, however, need to be more cognizant of simultaneous requests to the same session if you're using frames. It's quite common for the browser to send multiple simultaneous requests. Craig -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Using Frames in Struts
Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Using Frames in Struts
Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Using Frames in Struts
Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:43 AM Subject: Re: Using Frames in Struts Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Using Frames in Struts
So with Struts a welcome page of site using frames can never be composed of frames? Regards Frederic -Original Message- From: Jacob Hookom [mailto:hookomjj;uwec.edu] Sent: þå 01 ðåáîáø 2002 8:54þ To: Struts Users Mailing List Subject: Re: Using Frames in Struts Are you sure that with frames, you don't have 2 sessions running? Usually you have a single page that initiates the session, then forwards to the frames pages. - Original Message - From: Alok Garg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 12:43 AM Subject: Re: Using Frames in Struts Hello Corneil , Thanx for teh reply its in the Session. Alok - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 01, 2002 11:49 AM Subject: RE: Using Frames in Struts Sounds like your hastable is in your request and not the session Corneil du Plessis Technical Specialist Internet Development Retail Channels Standard Bank Direct +27 (11) 636-2210 Mobile +27 (83) 442-9221 ICQ# 66747137 -Original Message- From: Alok Garg [mailto:alok;direct2s.com] Sent: 01 November, 2002 06:17 To: Struts Users Mailing List Subject: Using Frames in Struts Has anybody have used frames in Struts 1.1b2 with weblogic61 then please guide me with a problem that I am facing. I have a main Frame with 2 frames in it. From one frame1 I am calling an action class from where I am setting a hashtable, and I am forwarding it to the main frame. I want to access this hashtable in my second frame which I am unable to do it. I can get the hashtable in the first frame but not in the second frame. Now, when I press refresh I get the hashtable in the secondframe. Please help me with this, and if u can provide me with an example it would be of greate help. Alok __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Using Frames within STRUTS
Hi Devon, Thanks for your reply. I think that my understanding of the framework is sparse as I dont understand how this works. I have an app which collects insurance quote information. We are using an EJB to store the information as it is collected from the user on multiple screens. My starting point is /editQuoteSummary which looks up the EJB and populates the quotesummaryForm with default user data using the class com.libertymutual.lit.pca.EditQuoteSummaryAction. In my original version I then had the 'success' forwarding to a PCATable.jsp file (rather than PCAFrame.jsp as is shown below) which had 2 jsp includes(PCANavigation.jsp and PCAQuoteSummary.jsp), the latter of which had the definition for the form html:form action=/saveQuoteSummary.do. This seemed to work OK. !-- Edit quote summary -- actionpath=/editQuoteSummary type=com.libertymutual.lit.pca.EditQuoteSummaryAction name=quotesummaryForm scope=request validate=false forward name=failure path=/mainMenu.jsp/ forward name=success path=/PCAFrame.jsp/ /action !-- Save quote summary -- actionpath=/saveQuoteSummary type=com.libertymutual.lit.pca.SaveQuoteSummaryAction name=quotesummaryForm scope=request validate=false forward name=failure path=/PCAQuoteSum.jsp/ forward name=success path=/editPropertyQuestions.do/ /action Our user then wished to implement frames. So I changed the PCATable.jsp to a frames implementation (PCAFrame.jsp). However when I access the PCAFrame.jsp I get the following error in the frame asscociated with PCAQuoteSummary.jsp: Error 500 An error has occured while processing request:http://localhost/PCAWebAppEJB2/PCAQuoteSummary.jsp Message: Server caught unhandled exception from servlet [jsp]: Cannot find bean quotesummaryForm in scope request Can you see what I am doing wrong ? Thanks Glynn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 18 July 2001 13:50 To: [EMAIL PROTECTED] Subject: RE: Using Frames within STRUTS I would like to make use of frames within my STRUTS application but am unsure how the framework handles frames. For example, if I have a form within a JSP page (form.jsp) and that page is presented to the user within a frame (frame.jsp), how should I associate the ActionForm to the form.jsp within the struts-config.xml file. I want the app to navigate to the frame.jsp page but cannot associate the ActionBean to this jsp as it does not have a form tag. Is there a recommended solution ? Not sure I fully understand but here goes... When form.jsp starts generating the HTML for the form, it will look for an ActionForm from which it can get default values. The name it will use to look for this bean is defined in the struts-config.xml under the Action to which you will be submitting the form. So the ActionForm name is associated with the Action that receives it rather than the JSP that generates it. So the fact that the JSP that generates it is wrapped inside a frame isn't really an issue. There are at least two other possible problems, though: 1) If you want the previous Action to preload the ActionForm with some information (from a database, for example) you can do this by making your own ActionForm bean, filling it in, and then saving it in the session scope under the name which is declared in the Action that will receive it. It will then be found automatically when form.jsp generates the HTML. 2) If you choose to automatically validate the ActionForm, you need to specify the input page so that Struts can automatically send you back there in case of an error. I don't have experience with this but you should be able to specify your frame.jsp file as the input source. When it then renders form.jsp within, this inner page will still find the ActionForm in the context if it were the highest level page. Does that help? Devon
RE: Using Frames within STRUTS
Change the 'success' forward back to PCATable.jsp. To use frames, all you have to do is change your starting point, which should now be PCAFrames.jsp. In your PCAFrames.jsp, make sure you have a frameset that links to /editQuoteSummary, and not PCATables.jsp. Calvin On 19 Jul 2001 10:08:25 +0100, Alexander, Glynn (LIT) wrote: Hi Devon, Thanks for your reply. I think that my understanding of the framework is sparse as I dont understand how this works. I have an app which collects insurance quote information. We are using an EJB to store the information as it is collected from the user on multiple screens. My starting point is /editQuoteSummary which looks up the EJB and populates the quotesummaryForm with default user data using the class com.libertymutual.lit.pca.EditQuoteSummaryAction. In my original version I then had the 'success' forwarding to a PCATable.jsp file (rather than PCAFrame.jsp as is shown below) which had 2 jsp includes(PCANavigation.jsp and PCAQuoteSummary.jsp), the latter of which had the definition for the form html:form action=/saveQuoteSummary.do. This seemed to work OK. !-- Edit quote summary -- actionpath=/editQuoteSummary type=com.libertymutual.lit.pca.EditQuoteSummaryAction name=quotesummaryForm scope=request validate=false forward name=failure path=/mainMenu.jsp/ forward name=success path=/PCAFrame.jsp/ /action !-- Save quote summary -- actionpath=/saveQuoteSummary type=com.libertymutual.lit.pca.SaveQuoteSummaryAction name=quotesummaryForm scope=request validate=false forward name=failure path=/PCAQuoteSum.jsp/ forward name=success path=/editPropertyQuestions.do/ /action Our user then wished to implement frames. So I changed the PCATable.jsp to a frames implementation (PCAFrame.jsp). However when I access the PCAFrame.jsp I get the following error in the frame asscociated with PCAQuoteSummary.jsp: Error 500 An error has occured while processing request:http://localhost/PCAWebAppEJB2/PCAQuoteSummary.jsp Message: Server caught unhandled exception from servlet [jsp]: Cannot find bean quotesummaryForm in scope request Can you see what I am doing wrong ? Thanks Glynn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 18 July 2001 13:50 To: [EMAIL PROTECTED] Subject: RE: Using Frames within STRUTS I would like to make use of frames within my STRUTS application but am unsure how the framework handles frames. For example, if I have a form within a JSP page (form.jsp) and that page is presented to the user within a frame (frame.jsp), how should I associate the ActionForm to the form.jsp within the struts-config.xml file. I want the app to navigate to the frame.jsp page but cannot associate the ActionBean to this jsp as it does not have a form tag. Is there a recommended solution ? Not sure I fully understand but here goes... When form.jsp starts generating the HTML for the form, it will look for an ActionForm from which it can get default values. The name it will use to look for this bean is defined in the struts-config.xml under the Action to which you will be submitting the form. So the ActionForm name is associated with the Action that receives it rather than the JSP that generates it. So the fact that the JSP that generates it is wrapped inside a frame isn't really an issue. There are at least two other possible problems, though: 1) If you want the previous Action to preload the ActionForm with some information (from a database, for example) you can do this by making your own ActionForm bean, filling it in, and then saving it in the session scope under the name which is declared in the Action that will receive it. It will then be found automatically when form.jsp generates the HTML. 2) If you choose to automatically validate the ActionForm, you need to specify the input page so that Struts can automatically send you back there in case of an error. I don't have experience with this but you should be able to specify your frame.jsp file as the input source. When it then renders form.jsp within, this inner page will still find the ActionForm in the context if it were the highest level page. Does that help? Devon
RE: Using Frames within STRUTS
I would like to make use of frames within my STRUTS application but am unsure how the framework handles frames. For example, if I have a form within a JSP page (form.jsp) and that page is presented to the user within a frame (frame.jsp), how should I associate the ActionForm to the form.jsp within the struts-config.xml file. I want the app to navigate to the frame.jsp page but cannot associate the ActionBean to this jsp as it does not have a form tag. Is there a recommended solution ? Not sure I fully understand but here goes... When form.jsp starts generating the HTML for the form, it will look for an ActionForm from which it can get default values. The name it will use to look for this bean is defined in the struts-config.xml under the Action to which you will be submitting the form. So the ActionForm name is associated with the Action that receives it rather than the JSP that generates it. So the fact that the JSP that generates it is wrapped inside a frame isn't really an issue. There are at least two other possible problems, though: 1) If you want the previous Action to preload the ActionForm with some information (from a database, for example) you can do this by making your own ActionForm bean, filling it in, and then saving it in the session scope under the name which is declared in the Action that will receive it. It will then be found automatically when form.jsp generates the HTML. 2) If you choose to automatically validate the ActionForm, you need to specify the input page so that Struts can automatically send you back there in case of an error. I don't have experience with this but you should be able to specify your frame.jsp file as the input source. When it then renders form.jsp within, this inner page will still find the ActionForm in the context if it were the highest level page. Does that help? Devon