File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes pop up yes/no/cancel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pop up yes/no/cancel" Watch "pop up yes/no/cancel" New topic

pop up yes/no/cancel

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
I have a situation where the user hits a button a window pops-up with yes/no/cancel buttons.
Depending on the button clicked i want to submit the form of the parent page.
I think I can do this with the <html:form target="windowOpener"
but could not get it to work.

any ideas on how to do this

alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
you need to use javascript and call 'opener.document.FormNameInParentWindow.submit()' to submit. here's an example that sets values from child window, instead of setting values, you just need to call submit() -

-/a<br />certified slacker...yes, my last name is 'do' - <a href="" target="_blank" rel="nofollow"></a>
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
will try the formname.submit(). However the example is probably not complete. but i get the idea.
thanks alan
I agree. Here's the link:
subject: pop up yes/no/cancel
It's not a secret anymore!