-
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 :|
-
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
-
teacher is the specific teacher, which looped by <c:foreach
and the other is function in hibernet...
-
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?