my dog learned polymorphism*
The moose likes JSP and the fly likes Includes and servlet request at the same time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Includes and servlet request at the same time" Watch "Includes and servlet request at the same time" New topic
Author

Includes and servlet request at the same time

Stamin Adrian
Ranch Hand

Joined: Dec 21, 2012
Posts: 34



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

Joined: Jan 10, 2002
Posts: 60782
    
  65

Don't include the JSP, include the servlet which forwards to the JSP.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Includes and servlet request at the same time
 
Similar Threads
Checkbox
JSTL how to use ELSE in JSP
how to avoid show buttons
c:choose not working with ajax
Mixing JSP and Scriptlets throws compilation errors