This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
When I try to do a foreach loop inside doPost or doGet like this:
why the browser outputs all the values together in the same line (like an out.print()) ?
posted 7 years ago
I found myself the answer to the above "too elemental" question. If I want broken lines, I must insert a <br> tag after each println invocation within the for-each loop, due to println only writes in the response object, but do not format such a flow with implicit new lines. Sorry for waste your time.