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 :|