This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance Question

 
mrsmithq
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"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
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic