This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes popup in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "popup in struts" Watch "popup in struts" New topic

popup in struts

vara prasad
Ranch Hand

Joined: Dec 21, 2004
Posts: 47

In Struts jsp i want to open popup windows using <html:link> tag. how can i do this.

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you specify target="_blank", the link will show in a new window. Unfortunatly, though, using this method you have no control over the size or position of the new window. If you want to open a popup window with a specific size or position, you need to use javaScript. You would want to use the method within an onclick event.

Consultant, Sima Solutions
I agree. Here's the link:
subject: popup in struts
Similar Threads
Display results in a popup window
popup window loses variable
Struts and Popup
data submit on popup and refresh parent page
Refresh parent window without closing popup with struts validation