• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redirecting from popup window

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

I ve a scenario here.

Im using struts 1.2 in my app. When i give search in the parent window, it will display the details in the display: table. Using a decorator im redirecting the control to open a new popup window. In the popup window, (after modifying the details)when i click save button, it has to do the following :
1.Call the save() action method in the popup windows action class.
2.Close the popup window.
3.Save the modification and shd display the message "saved successfully" in the parent window.
4.In the parent window it has to call the search() of parent window's action class automatically.

I used actionRedirect in the popup windows action class save().

ActionForward actionForward = mapping.findForward(Constants.REDIRECTSUCCESS);
actionRedirect = new ActionForward(actionForward.getName(),actionForward.getPath()+"?method=search",true);
return actionRedirect;

If anybody could find asolution it will be helpful for me..

Thanks
vijay
 
reply
    Bookmark Topic Watch Topic
  • New Topic