Thanks.

I am not sure if I understand what you said. I tried the following, but does not work. I am wondering how I can set courses to page context?

<display:table name="students" uid="student">
  <display:column property="name"/>
  <display:column title="Courses">
<jsp:scriptlet> pageContext.setAttribute( "courses", courses); </jsp:scriptlet>
    <display:table name="courses" uid="course">
      <display:column property="name"/>
    </display:table>
  </display:column>
</display:table>

Rick Herrick <[EMAIL PROTECTED]> wrote:
Rick Col said:
> I have a list of Student obje cts, a Student object contains a list of
> courses. I want to display a list of students, for every student, I also
> want to display a list of courses under Courses column. Can I achieve that
> using displaytag?

I would think so. Something like this:










The only catch is that you might need to scope the embedded table to
pageContext (i.e. something like name="pageContext.student.courses").

--
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

Reply via email to