package test;
public class BeanTest2{
public String waitVersionResult(int waittime,String writestring) throws Exception {
int returnVAL = 1;
while ( true ) {
try {
Thread.sleep ( 200 );
} catch ( final InterruptedException interruptedException ) {
continue;
}
if( returnVAL > waittime ){
return writestring;
}
returnVAL++;
}
}
}
__________________________________________________________________________________________________
<%@ page contentType = "text/html; charset=euc-kr" session="false" %>
<jsp:useBean id="beantest" class="test.BeanTest2" scope="page"/>
<jsp:setProperty name="beantest" property="*" />
<%= beantest.waitVersionResult(10,"하하하") %>