This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes CLASS VS JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "CLASS VS JSP" Watch "CLASS VS JSP" New topic
Author

CLASS VS JSP

PANDU YELAMANCHILI
Greenhorn

Joined: Feb 02, 2001
Posts: 3
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CLASS VS JSP
 
Similar Threads
Can we extend multiple classes ?
dynamic java
JSP Query
Java method call in Jscript function.
Data Transmission from a JSP Page to the Struts Action class