Actions do not control the users browser and therefore can't create popups.

JSP Pages are sent to the browser which can contain Javascript which can do what you want.

Follow Nils-H's links to see how to do create a pop-up in a page, and the Struts2 tutorials (http://struts.apache.org/2.x/docs/home.html) for information on how to get your data onto the page.

Al.

elyes sallem wrote:
dou you understand my question first?,
i don't want to display a confirmation message from a javascript
i wanna display it from an action, so from java class
i wanna make query in database
depending on the result of the query,
i will display the pop up
and second time, depending on the user is response, ok or no , il will do
some trt
and make forward , all this in an action  => java

Regards
Elyes


2008/12/18 Nils-Helge Garli Hegvik <nil...@gmail.com>

As mentioned, google is a good source for information:

http://www.google.com/search?q=javascript+tutorial
http://www.google.com/search?q=javascript+popup

Nils-H

On Thu, Dec 18, 2008 at 4:40 PM, elyes sallem <elyes.sal...@gmail.com>
wrote:
i wanna display a pop up information

2008/12/18 Nils-Helge Garli Hegvik <nil...@gmail.com>

I would be a lot easier to help if you gave some examples what you're
actually trying to do. Invoking javascript from the action doesn't
make much sense. Please provide som more information.

Nils-H

On Thu, Dec 18, 2008 at 4:27 PM, elyes sallem <elyes.sal...@gmail.com>
wrote:
Hello,
i wanna call javascript from an action class,
any one has an example?

Thanks
Regards
Elyes.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


--
Elyes.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






--
======
Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to