Angus Ferguson wrote:but I want use some Java objects on the session and a JSP include to generate the html in order to improve performance...
Joanne's absolutely right: you've got this bass-ackwards.
1. Does your program work? Don't even
think about efficiency until you can say 'yes'.
2. Is your program running too slowly? If not: see 1 (and you'd better have some good metrics to back it up).
3. Do you KNOW that the reason it's running slowly is because of your StringBuilder? If not: again, see 1.
Basic lesson: Don't worry about efficiency until you have a well-designed, and well-written,
working solution.
W.A. Wulf wrote:More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason — including blind stupidity.
Winston