I need to get the content of a jsp page from a servlet without redirect or forward, like a file for security issues, I'll process the HTML and write the new generated HTML in the servlet response. How can I do that?
An example of what I'm trying to do:
if (request.getParameter("pageName").equals("index")) {
//get index.jsp content and process it...
}