jsp ·Î ´ÙÀ½°ú °°ÀÌ Å×ÀÌºí °ªÀ» ºÒ·¯¿Í¼ ÇÁ¸°Æ® ÇÏ´Â ¼Ò½¼µ¥¿ä
ÀÌ°Ô while ¹®À¸·Î µ¹¸®´Ùº¸´Ï±î À¥ºê¶ó¿ìÀú¿¡ »Ñ·ÁÁö´Â Çü½ÄÀÌ Ã³À½ µ¥ÀÌÅÍ ºÎÅÍ ÂïÇô¼
¸¶Áö¸·±îÁö ÂïÈ÷°Ô µÇ´Âµ¥¿ä ÀÌ°É ¿ª¼øÀ¸·Î ¹Ù²Ù°í ½Í°Åµç¿ä
±×·¯´Ï±î ÃÖ±Ùµ¥ÀÌÅÍ°¡ À§ÂÊ¿¡ ÂïÈ÷´Â Çü½ÄÀ¸·Î¿ä.
½±°Ô ÀÌÇØÇÏÀÚ¸é °Ô½ÃÆÇ ½ÄÀ¸·Î ÃÖ±Ù±ÛÀÌ À§ÂÊ¿¡ ÂïÈ÷°Ô ÇÏ°í½Í½À´Ï´Ù.
º¯¼ö°ª Áß¿¡¼ numberÀÌ ±âº»Å°·Î¼ µî·ÏµÇ´Â ±Ûµé ¼ø¹øÀ̰ŵç¿ä ÀÌ°ÉÀÌ¿ëÇؼ ¾î¶»°Ô Çϴ°Å
°°Àºµ¥ ¹æ¹ýÁ» ¾Ë·ÁÁÖ¼¼¿ä
<%rs = stmt.executeQuery( "select * from culdata" );%>//DB¿¡¼ Äõ¸® ºÒ·¯¿À±â
<% while( rs.next() )
{
String number = rs.getString("number");
String zno = rs.getString("zno");
String times = rs.getString("times");
String temperature = rs.getString("temperature");
String humidity = rs.getString("humidity");
String state = rs.getString("state");
%>
No : <%=number%> Z-Number : <%=zno%> time : <%=times%> temperature : <%=temperature%> humidity : <%=humidity%> state : <%=state%><br> //À¥ºê¶ó¿ìÀú¿¡ °ª »Ñ¸®±â
<%
}
}%>