Unable to get the list from domain class to GSP in grails 2.3.7 -
i have embedded class , stored list.
embedded class(questionairre) initailization , made list in domain class
class surveyquestions{ questionairre questionairre list questionairrelist static embedded = ['questionairre', 'questionairrelist'] }
below method called domain object list controller class method :
def show(surveyquestions documentinstance) { list<surveyquestions> surveyquestionslist = documentinstance.list() [eventslist:surveyquestionslist] }
gsp page list , iterate inside gsp page.
<g:each in="${eventslist}" var="p"> <li>${p}</li> </g:each>
please surveyquestionslist object controller gsp page displaying list.
Comments
Post a Comment