This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I know there is similar question before, but i really wanna to see if there is any better answer today.
We are all JSP 2.0 projects, 2.0 + EL, and we really want to reuse some JSP as our template, they are actually the same page content, just less style. My team really think there is a better way, other than: 1. Use another template engine and redo all presentation logic 2. Use URLConnection to grab the page (each page need to go through the web server)
Does anyone know anything to fake a request/response object, such that we can do a getRequestDispatcher(url).include(req, res) within our code?