This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to show the values i obtain from database in a jsp file. I am using JSTL to iterate the collection. I have the java bean defined with getter and setter methods. I am using request.setAttribute("rows", rows) and i iterate over the items in my jsp. But i cannot see any values and the page is blank.
please advise me.
redirect will take to resultspage
my jps file
i have a java bean which has getName and getSalary methods
thanks for reply bear. I am not sending resultset to jsp.i created an arraylist with the employee data and setting that as an attribute in request. like request.setAttribute("rows", rows)
i am assuming this list is what is used by foreach items attribute. but i cant even debug what going on as i am a newbie to jstl.
if i am not clear please excuse.
why do i see blank page..it seems like control doesnot go in to foreach..so i think the collection is not visible?
struggling with this issue for hrs now.please help