Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes Notification sending in my project using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Notification sending in my project using JSP" Watch "Notification sending in my project using JSP" New topic
Author

Notification sending in my project using JSP

Apurv Gupta
Greenhorn

Joined: Jun 15, 2011
Posts: 7
Hi,
I am working on a project of hospital management where i an supposed to send a notification to the doctor as soon as the receptionist clicks on the Patient's name.
We are using jsp and mssql.
We have thought to divide the page into html frames and refresh a frame after every 15 minutes.
If this can work then please Help me with its code.
If not then please let me if there is any other way to send a notification.
Your answers will be highly appreciated..
Cheersjavascript:emoticon('');
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19760
    
  10

I don't see what frames and refreshing have to do with that.

When somebody clicks on a button, it should send a request to the server, as HTML buttons normally do. Then the server should send the notification.
Apurv Gupta
Greenhorn

Joined: Jun 15, 2011
Posts: 7
Actually in my HTML i have i <div> that i need to refresh timely.
This div retrieves values from the database.
Let us suppose that the database values are changed periodically.
So I just want to get updated values from the database without refreshing the whole page.
Is this possible???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63355
    
  70

You'd use Ajax and an interval timer for that.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Apurv Gupta
Greenhorn

Joined: Jun 15, 2011
Posts: 7
can you please suggest a code for that.....
Thanks..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63355
    
  70

Please read NotACodeMill. If you are new to Ajax, there are lots of tutorials. I'd start with this article.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Notification sending in my project using JSP
 
It's not a secret anymore!