File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlets Only Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets Only Web Application " Watch "Servlets Only Web Application " New topic
Author

Servlets Only Web Application

robin singal
Ranch Hand

Joined: Jul 18, 2007
Posts: 102
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


Life is short play hard.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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


Java Resources at www.wbrogden.com
robin singal
Ranch Hand

Joined: Jul 18, 2007
Posts: 102
Thanks
I would try AJAX Style programming....[ ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets Only Web Application
 
Similar Threads
setting font for applet
Get typed text in textarea on autorefresh
Update text area values without page reload
Enabling a check box based on the position of scroll bar in a text area..
How to set value of html textarea tag