Based on the audience you speak with the current accepted practice is
to use a little if any java code in directly in your jsp pages. I
believe the current groundswell from the community at large is to use
Java Tag Libraries and the more recent JavaServer Faces.