| Author |
How to open a pop up with javascript using struts
|
JoseDeJesus Arena
Greenhorn
Joined: Apr 24, 2011
Posts: 4
|
|
Hi all
I need your help, because I have a login JSP and when I submit the strut's action Form the next JSP show me information from my data base, so what I need its send this page in a pop up because I need limit the action of the user, for example disbale forward and backward buttons and stuff like that, I know that its with windows.open() method, but I dont know how to send the form, and the strut's action. I have some test but with no success here the snippet of the code
In this case I write in the JSP form tag the property target="_blank" and first show me a blank pop up but without information and next open a new popup but with all properties of my browser
Also try this, writing the action but I have the same result
So someone knows how to open the a struts action in a new pop up, thanks for the help
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
this.target refers to what?
I am guessing that it should be
and you should have a target attribute set on your form element.
Eric
|
 |
JoseDeJesus Arena
Greenhorn
Joined: Apr 24, 2011
Posts: 4
|
|
Hi thks for the reply, and this.target refers to the target property of the form, what I setting as target = "_blank", so what I try to do, its reference the blank popup to the action of the windows.open, thats why I write this.target, I hope be clear in my explination
regards
|
 |
 |
|
|
subject: How to open a pop up with javascript using struts
|
|
|