grails: show list of elements from database in gsp
问题 in my grails app I need to get some data from database and show it in a gsp page. I know that I need to get data from controller, for example List<Event> todayEvents = Event.findAllByStartTime(today) gets all Event with date today Now, how can I render it in a gsp page?How can I pass that list of Event objects to gsp? Thanks a lot 回答1: You can learn many of the basic concepts using Grails scaffolding. Create a new project with a domain and issue command generate-all com.sample.MyDomain it