• 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

How to open a pop up with javascript using struts

 
Greenhorn
Posts: 4
Android Eclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
Android Eclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic