I had a thought in one of my other posts and wanted to start it's own
thread. With the limited JSP/Servlet coding I have done, it seems that there are times when we request a
JSP page and time when we request a
Servlet. And then JSP pages calls Servlets and Servlets forward to JSP pages.
Well, what if you ALWAYS called a JSP page. So let's say you had
Page1.JSP
Page1.class
The first thing that Page1.JSP page does is call Page1.class. Page1.class does all the initial work that the JSP page might need to do. Like get info from a database, get values for form data, etc. Then it forwards back to the Page1.jsp.
Those familiar with ASP.NET will recognize this a bit. I am just wondering if there would be too much overhead with the extra calls to possibly empty servlets. Or if it would be moot.
Any comments?