Izanami Caster wrote:I don't want to use out.println to print table markup (feels a little dirty). Is there a better way to print table rows iteratively within a scriptlet ? Am I doing this the wrong way ? Please advise.
Scriptlets? Yes, you are doing it the wrong way. Scriptlets have been obsolete for well over a decade now. Instead
you should be using JSTL tags to generate output -- everything you have there in
Java can be written in JSTL, and you can put HTML tags in there and have them go into the response. Give that a try instead.
And yeah, putting out.println in a scriptlet is icky. Back near the turn of the century we had to do that but then they invented JSTL, which is way better to work with.