public void doGet()
{
while (true)
{

synchronized(this)
{
try
{
this.wait(5000L);
} catch (InterruptedException e)
{
e.printStackTrace();
}
}

Thread t = new Thread(new Runnable()
{public void run()
{
URL url;
try
{url = new URL("http://192.168.0.229:8080/errtest/a.jsp");
System.out.println(url.getContent());
} catch (MalformedURLException e)
{
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
}
}});
t.start();
}
}