Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Performance Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Performance Question" Watch "Performance Question" New topic
Author

Performance Question

mrsmithq
Greenhorn

Joined: Aug 17, 2001
Posts: 8
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
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: 3222
    
    5
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

"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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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: 3222
    
    5
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.
 
GeeCON Prague 2014
 
subject: Performance Question