The moose likes Struts and the fly likes Struts Popup Window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Popup Window" Watch "Struts Popup Window" New topic

Struts Popup Window

DVVN Sudhakara Rao

Joined: Oct 04, 2004
Posts: 17
I want to know how to open a popup window with struts action not using javascript. In my struts application I have a jsp page which have 4 buttons with different actions. I want to open a popup window when this aciton is invoked.I don't want to use javascipt.
Sorry for my Bad English. I hope you got the problem right.
Thanks in Advance
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

Originally posted by DVVN Sudhakara Rao:
I want to open a popup window when this aciton is invoked. I don't want to use javascipt.

I don't see how you can solve your problem without using JavaScript. Popup windows are controlled by the browser. Struts has no direct control over the browser; it does all its work on the server side. As far as I know, you have to use JavaScript to open up a popup window. That or specify a target, which is still controlled by the browser.

<a href="..." target="myPopup">Click me to open up another window</a>

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: Struts Popup Window
It's not a secret anymore!