This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP performance" Watch "JSP performance" New topic

JSP performance

Allen Bandela
Ranch Hand

Joined: Feb 16, 2006
Posts: 128

1) What are the factors in a JSP page that would affect its performance drastically. I have a jsp that uses scripting and takes a while to process.

2) Does using scripting as opposed to EL hinder the performance of the page?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

By "scripting", I assume you mean scriptlets.

The answer is no.
Your JSPs get compiled into servlet code before being interpreted by the container. Any difference between scriptlets and JSTL/EL would be negligible.

The reasons to move away from scriptlets have more to do with maintainability than with performance.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: JSP performance
Similar Threads
confusion in declaration
body-content as JSP
Hashtable or HashMap
Including static content
This weeks Giveaway