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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60048
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Includes and servlet request at the same time
 
Similar Threads
how to avoid show buttons
Checkbox
Mixing JSP and Scriptlets throws compilation errors
c:choose not working with ajax
JSTL how to use ELSE in JSP