Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Automatically refreshing a page when an entry is inserted into the database  RSS feed

 
Abhilash
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a link called "INBOX()" with the number of unread messages between the brackets'()'.

My aim is to make the link 'INBOX()' to update the number unread messages and i do not want the whole page to be refreshed.



Is it possible to refresh a link alone when an entry goes into the database?

How do i do this .. plz help me its a bit urgent.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets and JSP just get a request and create a response - they can't initiate sending data without a request. This simply means that your client side has to repeatedly refresh that HTML page data using something like an applet or Javascript to request the latest figure from the server.
Bill
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Abhilash" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, "Abhilash", this is not the first time that you have bene asked to change your display name. This request is not a suggestion. Proper display names are mandatory for participation in the JavaRanch.

Please be sure to change your display name to conform to Ranch standards prior to your next post. Failure to do so will subject your account to closure.

bear
Forum bartender
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!