jsp optimization

cfleck

tired
so i have this lovely java class that i'm using in a jsp. basically, it has a function that creates a string that i then print out in the web page. something like this...

PHP:
<html><body>
<% 
MyClass a = new MyClass();
String s = a.getString();
out.println(s);
%>
</body>
</html>

anyway, this string gets HUGE. so i'm wondering if there is something i can do to speed things up. like is it faster to have the string generating method in a compiled class or as a scriptlet in the jsp? anyone have some ideas?
 
Back
Top