Yes, there is a way to do that. To Include say another JSP page from a servlet you can use something called RequestDispatcher from the ServletContext. Here is an example.
We are in a servlet, we want to include a page called test.jsp to the output stream. we'd do this...
ServletContext...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.