2014-04-12 1 views
0

Struts 2에서 조치가 취해졌습니다. 이메일 ID가 비어 있는지 테스트하거나 null을 사용하여 JSP의 테스트 조건 <s:if>을 테스트하고 싶습니다.체크리스트는 <s:if> 태그를 사용하여 Struts 2에서 null 또는 not 특정 요소를 포함하고 있습니까?

class EmailAction extends ActionSupport { 
     private ArrayList<Email> emailList; 
     //setter and getters 
} 

class Email { 
    private String username; 
    Private String password; 
    private String emailId; 
    //getters and setters 
} 

답변

0

당신은 emailId

<s:if test="emailId == null || emailId == ''"> 
+0

감사의 작업에 대한 게터를 제공해야 –

관련 문제