aspose file tools*
The moose likes Struts and the fly likes Is it possible to call popup from action class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Is it possible to call popup from action class? " Watch "Is it possible to call popup from action class? " New topic
Author

Is it possible to call popup from action class?

Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46

Hello !

Is it anyway possible to call popup window from action.

I am using Struct 1 framework.


Thank You!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

Not directly, no.
A Struts application runs on the server, so it can't trigger events in the user browser. That said, you can use JavaScript in your JSP to trigger a popup, and you can write JavaScript code via Struts into the JSP before it is returned to the client browser. Another strategy would be to use JavaScript to call an action and call a popup with the result (commonly referred to as AJAX).


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to call popup from action class?