I would like to know if there is a quick and easy way to display the results of an Array List of Strings, Formatted with line breaks, to the default web browser page that the URI is called from.
I'm currently using Spring Rest Controller and even though I could go down the route of building another
jsp page, I just want to simply print to the default browser page. Currently, it displays with nothing more than just returning the list, but it is hard to decipher because there is no formatting.
I would like to see each line in the array list printed on a new line on the browser page. Nothing fancy, just line breaks after each element.
Example:
Id 10
No Name found for id 10
-----------------------------------------------------------------
Id 15
No Name found for id 15
-----------------------------------------------------------------
Id 13
Name: Some Name
-----------------------------------------------------------------
Here is my code right now, like I said nothing fancy:
Here is the current output:
["Id 10","No Program found for given channel 10", "-----------------------------------------------------------------", "Id 15","No Program found for given channel 15", "-----------------------------------------------------------------","Id 13","Name: Some Name", "-----------------------------------------------------------------"]