I have been asked by a company that interviewed me to create a random number generator for a lottery type system. They want me to ask the user how many tickets they want, and from there i create 6 random numbers between 0-49 for each ticket. Seems simple enough, what i want to do is pass that number to a servlet, create an array, then loop through that array in a .jsp page, for each 6 numbers i would create a new ticket. The only problem i have is passing an array from the servlet to the jsp page, i have no idea how to do this. Any help in doing this or a point in the right direction would be greatly appreciated.