If I choose to use Servlets for all my pages that simply reference jsp pages, I am taking a performance hit? Many of these pages could simply just be a jsp page without a servlet but for an orgnization point of veiw having all servlets maybe better.
Chris Mathews
Ranch Hand
Joined: Jul 18, 2001
Posts: 2712
posted
0
Why not go with a Model-View-Controller Design (MVC)? Have one or more central Servlets that direct requests to the appropriate JSP page.
Tony Alicea
Desperado
Sheriff
Joined: Jan 30, 2000
Posts: 3219
posted
0
Or (in a Struts-like manner), the Controlling Servlet dispatches a helper request handler to do the processing and then this handler forwards to the JSP when it's done.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
"mrsmithq" your name doesn't agree with the javaranch guidelines. please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp thanks for your cooperation. - satya
Thanks Madhav: Sorry I got so involved in the question (it referred to the technology that I do every day!) that I didn't even notice!
Tony Alicea
Desperado
Sheriff
Joined: Jan 30, 2000
Posts: 3219
posted
0
That said, If you have a performance problem by using the recommended approach, get a faster computer. It will be cheaper than paying a higher number of experienced programmers than necessary to maintain the site's code base.