Announcement Announcement Module
Collapse
No announcement yet.
Joint data Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Joint data

    i'm using <c:foreach to read my data, but some data are not exsit...
    for example

    look at the source :
    Code:
    <c:forEach items="${teacher_list}" var="teacher">
                                                    <tr>
                                                        <td>
                                                                ${teacher.teachid}
                                                        </td>
                                                        <td>
                                                                ${teacher.fistname}
                                                        </td>
                                                        <td>
                                                                ${teacher.lastname}
                                                        </td>
                                                        <td>
                                                                -{teacher.role}
                                                        </td>
                                                        <td>
                                                                -{teacher.majorCode}
                                                        </td>
    the place i used -{teacher.role}
    it should be
    Code:
    userAccountFactory.getUserAccount(teacher.teachid);
    and in next place it should be
    Code:
    userAccountFactory.getUserAccount(teacher.teachid).getMajor.getMajorCode;
    what should i do? i need any possible option, without overheating server... cause server is old too :|

  • #2
    Your case is strange

    I understood that

    -{teacher.role} should be or represent userAccountFactory.getUserAccount(teacher.teachid) ;
    Am I correct?

    var="teacher" represent a POJO, therefore how you expect that in such line teacher work or get access with
    userAccountFactory.getUserAccount ?

    Same appreciation about Teacher and Major

    Comment


    • #3
      teacher is the specific teacher, which looped by <c:foreach
      and the other is function in hibernet...

      Comment


      • #4
        tnx man, but that fixed, it's even months that i left the company, but may you help me if you now any tutorial that work with Extjs mixed with Spring Framework?

        Comment

        Working...
        X