• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Includes and servlet request at the same time

 
Stamin Adrian
Ranch Hand
Posts: 34
Chrome Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When my commentBox.jsp page is included I also need it to get the comments stored in the database.

How would I make a servlet request at the same time to get those comments into the commentBox.jsp?

This is the commentBox.jsp that is included while the user navigates.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64719
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't include the JSP, include the servlet which forwards to the JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic