First: Don't use scriptlets in JSP, use tags.
Second: use lower case letter for variables name (i.e. "String from" not "String From" )
But since you are a beginner then playing with scriptlets is ok.
What you are doing wrong here is you are accessing the From variable outside the loop. Remember whatever you write inside <% %> will be turned into
java code and whatever you write outside will be shown as plain text on html page.
For example:
Resultant java code will be something like:
out.print("Plain Text") will just print "Plain Text" to your html page.
But if you write:
Resultant java code will be:
you will get 0,1, on the html page.
So now can you think what you need to do to print the list?