Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple windows using Struts.

843841Nov 1 2007 — edited Jan 31 2008
Morning all,

I have a problem with Struts which I am sure there is a very easy solution to but cannot seem to find it so hopefully someone out there can help me.

My problem is as follows:

I have a wizard style page that has 5 stages. On stage 3 one of the preoprties (say PROP X) that I need to set needs to be set via a popup window as you need to search via a web service to another application for the information.

I have created a link for this property which successfully opens the JSP search window. The user can enter their search criteria, it successfully retrieves a list from the web service, stores it in the struts form as an array list and displays the results on the jsp. The user can then select the required row via a button. What I want to happen here is it to pass the selected value back to the calling IE window.

What I have tried so far is create an interface called PropertyXResultable which implements the fcn setPropertyX. Implemented this interface on my calling wizard form. Passed the interface via the session into the new window. Once the user selects the result it will then invoke the setPropertyX fcn from my calling form. It is at this point I am stuck. I need to close the popup window and also update the JSP like the JavaScript calendar popups do. (I am not great at JS hence have written as a sperate Struts form). Because I have called my success forward in my search for property x form and set the forward to go back to the wizard, the wizard is then displayed in my popup window continuing from stage 3 but with property x set. I need this to happen in my calling window instead....

Hope this explains enough...

Any ideas?

Thanks in advance.

Matt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Nov 1 2007
12 comments
633 views