»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

jsp °ª ³Ñ±â±â Áú¹®ÀÔ´Ï´Ù.. (󸮽ð£)3

  • f-orest
  • µî·ÏÀÏ 2016-01-14 17:56
  • Á¶È¸¼ö 610
¾È³çÇϼ¼¿ä.. 
jsp °ª ³Ñ±â±â Áú¹®µå·Á¿ä
¹Ø ±×¸²°ú °°ÀÌ °Ë»ö¹öÆ° ´©¸¦½Ã 
°Ë»ö°á°ú (0.30ÃÊ) ÀÌ·¸°Ô 󸮽ð£À» È®ÀÎÇÏ°í½ÍÀºµ¥¿ä..
1452761377_ex1.PNG
Á¦ÄÚµå´Â ÀÌ·¸½À´Ï´Ù.

timeTest.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
long time=System.currentTimeMillis();
System.out.println("±âÁ¸½Ã°£="+time);
%>
<form name="f" action="timeTest_ok.jsp">
<input type="hidden" name="time" value="<%=time%>">
<input type="submit" value="¿äû">
</form>
</body>
</html>

timeTest_ok.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
long time2=System.currentTimeMillis();
System.out.println("µÎ¹ø¤ŠÅ¸ÀÓ="+time2);
String name=request.getParameter("name");
long time3=Long.parseLong(request.getParameter("time"));
System.out.println("³Ñ¾î¿ÂŸÀÓ="+time3);
System.out.println("󸮽ð£="+(time2-time3));
%>
<br>󸮽ð£=<%=time2-time3 %><br/>
</body>
</html>

ÀÌ·¸°ÔµÇ¸é óÀ½ timeTest.jsp ¿¡ µé¾î°¬À»¶§ÀÇ ·Î±×°¡ ³²´õ¶ó±¸¿ä
±×·¡¼­ onclick À̺¥Æ®¸¦ »ç¿ëÇÏ¿©
Ŭ¸¯½Ã °ªÀÌ ÀúÀåµÇ°í ³Ñ±â°í½ÍÀºµ¥ 
jsp ÄÚµå·Î´Â °ªÀ» ³Ñ±â±â´Â Ä¿³ç 
Á¦´ë·Î °¡Á®¿ÀÁöµµ ¸øÇϴ»óȲÀ̶ó Áú¹®À» µå¸³´Ï´Ù.
°í¼ö´Ôµé µµ¿ÍÁÖ¼¼¿ä


0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°
÷ºÎÆÄÀÏ
  • 1452761377_ex1.PNG

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 [* ºñȸ¿ø *]

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¿ë°³¸®

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 f-orest
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â