| 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: 8265
|
|
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).
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: Is it possible to call popup from action class?
|
|
|