Java 잘생긴팝콘 2011. 3. 15. 11:05
http://cafe.naver.com/toracle/67 CallableStatement는 PreparedStatement 를 상속받습니다. CallableStatement와 PreparedStatement 는 바인드 변수를 사용해서 DB 퍼포먼스를 높일 수 있습니다. 여기서 바인드 변수 란 SQL은 먼저 parsing-->execute-->fetche 로 실행됩니다. 바인드 변수를 사용하지 않으면 select * from emp where ename='SCOTT'; 이 문장과 select * from emp where ename='ALLEN';은 같은 문장이고 Condition Value 만 틀립니다. 하지만 DB는 같은 문장이라고 문장체크하고 스키마 체크, 테이블 유무 체크를 DataFile로 부터..
더 읽기
JSP 잘생긴팝콘 2009. 7. 22. 17:13
StringTokenizer st = new StringTokenizer(URLDecoder.decode(request.getParameter("frame_name").trim()),";"); while (st.hasMoreTokens()) { frame_name[i] = st.nextToken(); i++; } 활용예제
Java 잘생긴팝콘 2008. 11. 28. 16:51
URL url = null; URLConnection uc = null; HttpURLConnection connection; imgPath = "http://www.javaservice.net/adv/J2eeSTUDY.jpg"; url = new URL(imgPath); uc = url.openConnection(); try { connection = (HttpURLConnection)uc; if(connection.getResponseCode() != 200) //getResponseCode() => 404 (실패) 200(성공) { System.out.println("페이지가 없습니다.!!!"); } } catch(Exception e){}
Java 잘생긴팝콘 2008. 11. 24. 18:00
import java.util.regex.Pattern; public class HtmlTagDelDecoder { private static Pattern HTML_SCRIPT = Pattern.compile("\\]*?>.*?\\", Pattern.CASE_INSENSITIVE); private static Pattern HTML_STYLE = Pattern.compile("\\]*?>.*?\\", Pattern.CASE_INSENSITIVE); private static Pattern HTML_OPTION = Pattern.compile("\\]*?>.*?\\", Pattern.CASE_INSENSITIVE); private static Pattern HTML_TAG = Pattern.compile..
Java 잘생긴팝콘 2008. 11. 24. 17:52
public class RemoveTag { private static String[] htmlWords = { "", """, "&"," "," ", "&","<",">",""" }; private static int MAX_WORD_LEN = 6; private static String CRLF = System.getProperty("line.separator"); private static void decodeHtmlLastWord(StringBuffer sb, int pos) { if (sb.length() < MAX_WORD_LEN) return; int len = sb.length(); int len2; String str = sb.substring(len..
DEV tools 잘생긴팝콘 2008. 7. 19. 00:05
-showsplash org.eclipse.platform -framework plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar -vm C:\java\jdk1.6.0\bin\javaw.exe -vmargs -Xms256M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=512M ----------------------------------------- eclipse 설치할때
주부알바 재택부업 앙팡펫파트너스