aspose file tools*
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: 61202
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Includes and servlet request at the same time