Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP Vs Class

Status
Not open for further replies.

MultipartRequest

Programmer
Sep 12, 2001
19
CL
I`ve got a question. In a JSP file i need to run a process.

I can create a class(which has the process) and call the process from the JSP file, or I can create another JSP(which has the process) and include it in the other JSP file.

Which of these two methods gives me a best performance???

Thanks.
 
In most cases you are best off creating a class (that follows the JavaBean Specs) and using it from within your JSP for functionality. The only real reason to create and include other JSP is for pieces of pages that are the same across the entire application. An easy example is the header and footer of pages and site navigation. These things are usually redundant code in every page, much easier to just include a separate JSP. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top