Results 1 to 4 of 4

Thread: Joint data

  1. #1
    Join Date
    Feb 2012
    Posts
    29

    Default 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. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    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
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Feb 2012
    Posts
    29

    Default

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

  4. #4
    Join Date
    Feb 2012
    Posts
    29

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •