Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes How to open a pop up with javascript using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to open a pop up with javascript using struts" Watch "How to open a pop up with javascript using struts" New topic
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: 15376
    
    6
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open a pop up with javascript using struts
 
Similar Threads
Struts Action and javascript
Javascript window.open() problem
why the window doesn't close and bring the item to the main form?
Closing a pop up window of Excel on cancel.
populating Action Form