Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets Only Web Application

 
robin singal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have to make a chat web app. using only servlets. So all the display part is done using pw.println() on the response.

Now the issue is i want the text area to scroll down automatically as soon a i enter the message which in appended to the text area each time i submit the message.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way to control the behavior of the browser display is with code on the browser side - ie JavaScript. Using JavaScript to get fresh data from the server side to modify the display is commonly called AJAX style programming. Go see our HTML and JavaScript forum.

Bill
 
robin singal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
I would try AJAX Style programming....[ ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic