Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reload div tag from servlet  RSS feed

 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i reload a perticular div tag of jsp file from servlet?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Ajax, the request can access any type of resource, including a servlet. But if you are going to return an HTML fragment to insert into the DOM, your servlet should likely forward to a JSP to render the fragment.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!