มีปัญหาอีกแล้วครับ อิอิ
คือตอนนี้ผมทำ form มา ถ้า กด ปุ่ม ok ไป มันจะไปติดต่อ กับ server ผมได้ใส่ code ข้างล่างนี้ไปใน command action ครับ
try{
result = getViaHttpConnection("http://localhost:8080/test2.jsp?jame=<%if(getStr!=null)out.print(getStr);%>");
}
catch (Exception exc){
exc.printStackTrace();
}
แต่พอ run มันแล้ว ผลที่ได้คือ
Warning: To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the commandAction() handler.

ควรแก้ไขอย่างไรดีครับ