By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,651 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,651 IT Pros & Developers. It's quick & easy.

Java Servlet Code

sreekandank
P: 45
Hi...
I am doing one online web application. In this application I want to produce the dynamic alert message for every user registration. I mean to send the alert message to the admin whenever the database value is updated with the new user registration. So I want to know whether it is possible or not?. Kindly help on my project. Thanks in advance.
Feb 22 '12 #1
Share this Question
Share on Google+
8 Replies


10K+
P: 13,264
Are you doing the alerting through an email message?
You can use the JavaMail API to send out the email.
Feb 22 '12 #2

P: 21
you can check out with the triggers.

http://publib.boulder.ibm.com/infoce...afysqltrig.htm
Feb 22 '12 #3

sreekandank
P: 45
I don't want to send the email alert, instead just I want to provide the database updates on my web page. So kindly anyone help me this.
Feb 22 '12 #4

10K+
P: 13,264
How are the database updates done?
What technologies are you using? If you are using JSF 2 you get observer/observable support built in.
Feb 22 '12 #5

sreekandank
P: 45
I am using Java Servlet and MSAccess
Feb 23 '12 #6

10K+
P: 13,264
But you are using JSPs for the view right?
You'll need your view to be autorefreshing for the changes to update on the page.
Feb 23 '12 #7

sreekandank
P: 45
Yes. You are right. I want to display the updated values in my web page from the database table. Kindly help me on this.
Feb 23 '12 #8

10K+
P: 13,264
If you use JSF you can use AJAX to auto update specific components.
If you are using plain JSP then you can use the meta tag

META HTTP-EQUIV="Refresh" CONTENT="5;

to auto refresh the JSP page.
You should really consider using JSF 2 or newer for any web applications these days.
Feb 23 '12 #9

Post your reply

Sign in to post your reply or Sign up for a free account.