Can anyone tell me their experience on which will offer a better combination of performance and ease of maintenance: RequestDispatcher forward() to shoot parameters to a .jsp using <% request.getAttribute() %> or having the servlet write out all the HTML with out.println?
"having the servlet write out all the HTML with out.println" That could be a maintenance nightmare depending on the circumstances. Servlets really should not print HTML to the client. That's what JSPs are for
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
Joined: Mar 19, 2001
I totally agree that servlets should not write out the HTML. I am just trying to decide the best way to code our application. I started out using out.println but quickly realized the nightmare of maintaining it. So I am currently using the RequestDispatcher forward() method to populate data in a jsp. I am interested in knowing if anyone has experience with this design and if it hurt performance in any way.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com