0

hello i have some problem in showing button, when data exist and data not exist. i want the button show if data exist also data not exist. my current problem right now the button only show when data exist but the button automatically hide when data not exist.

here what i got so far..TQ

<tbody>                              
      <jsp:useBean id="reportList" scope="request" type="List" />
        <%                                                                                           
          Iterator staList = reportList.iterator();
          result out = (result) staList.next();
        %>                                        

           <% if (i!=0){%>
             <input name="search" type="button" id="search" value="Search"  onClick="return onSubmit_Click(document.form,'mfa.action?action=Sta_Report&status=<%=out.getStatusExam()%>');"/>                                                            

         <%} else {%>
              <tr>
                <td colspan="3">data not exist</td>
               </tr>
           <%}%>
    </tbody>

Edited by ct_hunny: wrong spelling

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by stultuske
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.