File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 61612
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Includes and servlet request at the same time