This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CLASS VS JSP

 
PANDU YELAMANCHILI
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have come across an application where a JSP page has only methods. This page is included in a main JSP page and those methods are utilized in that page. My question is
"Will there be any performance improvement if I convert that JSP page into a java class and import it into the Main JSP page"
Any reply will be appreciated
Thanks
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know about performance increase, but there may well be a maintenance and software design improvement. I strongly believe that each Java class should do one thing, and do it well. It looks like this is business functionality which has been lumped in with HTML generation in a JSP, so you should really separate it out so it can be reused in other contexts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic