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

JSP Buffer  RSS feed

 
Swathi Dharmavaram
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii am new to JSP am trying a small code which takes data from a html page ,and connect it to a database .I got the result only for the first string i gave and the second time if i give another word ,the result is displaying the first result.Is there anything called Buffer in JSP which neeeded to be flushed before you give another???
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Swathi Dharmavaram:
hii am new to JSP am trying a small code which takes data from a html page ,and connect it to a database .I got the result only for the first string i gave and the second time if i give another word ,the result is displaying the first result.Is there anything called Buffer in JSP which neeeded to be flushed before you give another???


Yes there is buffer in JSP in page directive.
Try to give autoFlush = true, set buffer size. By default buffer is 8kb.

For more information refer:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does not sound like your problem is any sort of buffer issue. Rather it sounds like a browser caching issue.
 
Swathi Dharmavaram
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya i have tried it with auto flush and flush !!! But nothing worked.How can i clear the browser cache even after deleting my temporary internet files???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!