Question: how to send data from controller to view in java?
Answer: @foreach (var std in (List<string>)ViewData["Students"])
//OR.
@foreach (var std in (IEnumerable<string>)ViewData["Students"])