aspose file tools*
The moose likes Struts and the fly likes how to add another window after an action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to add another window after an action" Watch "how to add another window after an action" New topic
Author

how to add another window after an action

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi there,

here's a scenario:
1. the end user clicks an image on the screen
2. the flow goes to the dispatchAction
3. method does some data manipulation
4. now I would like to return to the same page (ok,that's simple) but with another window to show some info (the info I got in 3)

any idea?
THANK YOU
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
In your dispatch action, put the data that you want to redisplay in the window in request scope. On the jsp that you forward to after the action, check to see if that data is in request scope. If so, in the onload() of the body, call window.open() with those parameters to display the data.
[ May 22, 2007: Message edited by: Dom Lassy ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add another window after an action