Property 'applicationNo' not found on type org.onnuri.cp.dto.BaptismApplicationDto

36 Views Asked by At

I want to display user-defined class with jstl but I have problem with some error.

Property 'applicationNo' not found on type org.onnuri.cp.dto.BaptismApplicationDto

I add some code to fix. <-- error code

<c:forEach items="${requestScope.ApplicationList}" var="list" >
<tr>
<td><c:out value="${baptismApplicationPK.applicationNo}" /></td>
<td><c:out value="${status.current.applicationNo}" /></td>
<td></td>
<td><c:out value="${list.name}" /></td>  
</tr>
</c:forEach>

BaptismApplicationDto.java

public class BaptismApplicationDto implements Serializable {
    private static final long serialVersionUID = 1L;
    protected BaptismApplicationPKDto baptismApplicationPK;
    private String name;

    public BaptismApplicationPKDto getBaptismApplicationPKDto() {
        return baptismApplicationPK;
    }

BaptismApplicationPKDto.java

public class BaptismApplicationPKDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private int applicationNo;
    private int baptismTypeNo;

I solved the error.

<c:forEach items="${requestScope.ApplicationList}" var="list" >
<tr>
<td><c:out value="${baptismApplicationPKDto.applicationNo}" /></td>
<td><c:out value="${status.current.applicationNo}" /></td>
<td></td>
<td><c:out value="${list.name}" /></td>  
</tr>
</c:forEach>
0

There are 0 best solutions below