Hi, Everybody!
Could someone, please, advise me on what is the best way to do the
following:
In my servlet I create a form dynamically, and on submit I want to do :
1. execute some queries against a DB;
2. if the result is acceptable, create a new page with the results,
otherwise pop up an alert window and don't reload the current HTML
page with the form.
I see two ways to do it, but I have questions on both of them:
1. On submit, call a new servlet which will do all DB work and check
results.
But: how can I pop up an alert window in case of a failure? Can I
call a JavaScript function from a servlet?
2. On submit, call a JavaScript function, which should call a servlet or
Java class to do the checking ( is it possible??? ), return true on success
or false on failure (and pop up the alert window).
Any ideas are greatly appreciated,
Thanks,
Marina
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html