롯데낙천대아파트 천정 누수 사진.

Legacy 2010. 3. 29. 23:39
우리집 거실과 방 사이의 복도쪽 천장을 타고 벽으로 물이 새나오고 있다.
윗집에서는 기분 나쁘다는 투다..
이를 어찌 대응 해야 할까??? 참 불편한 세상이로군..


:

인터넷 트랜드 정보제공 사이트.

ITWeb/스크랩 2010. 3. 24. 14:02

http://trend.logger.co.kr/trendForward.tsp

브라우저 점유율 이나 사용율이 궁금해서 찾다가 북마크 합니다. :)
:

JUnit 4 - annotation 설명

ITWeb/개발일반 2010. 3. 16. 17:00
@Test annotation
Test Case 를 만들어 줍니다. (선언)
 

@Test

public void blahMethod() {
    String result = "blah";

    assertEquals("blah", result);

}


@Before & @After annotation

각각 setup 과 tearDown method 를 위한 annotation

@Before

public void blahBeforeTest() {
    blah = new Blah();

}

@After

public void blahAfterTest() {
    blah = null;

}


@BeforeClass & @AfterClass
@BeforeClass : test case 수행 이전에 한번 실행, @AfterClass : test case 수행 후 한번 실행

@BeforeClass

public void blahBeforeTest() {
}

@AfterClass

public void blahAfterTest() {

}


@Ignore
Test Case 수행을 무시


@기타
@Ignore("무시이유작성")
@Test(timeout = 1000) : 시정한 시간이 경과 하면 test fail. (miiseconds)


사용하면 편한 mock 객체
- easymock
- mockito
:

JSTL if 예제들

ITWeb/개발일반 2010. 3. 15. 18:27


JSTP core tag:if
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head><title>Using the Core JSTL tags</title></head>
<body>
<h2>Here are the available Time Zone IDs on your system</h2>
<jsp:useBean id="zone" class="com.java2s.ZoneWrapper" /> 
<jsp:useBean id="date" class="java.util.Date" /> 

<c:if test="${date.time != 0}" >

    <c:out value="Phew, time has not stopped yet...<br /><br />" escapeXml="false" />

</c:if>

<c:set var="zones" value="${zone.availableIDs}" scope="session" />

    <c:forEach var="id" items="${zones}">

        <c:out value="${id}<br />" escapeXml="false" />


    </c:forEach>

</body>
</html>
// Save the ZoneWrapper.class into WEB-INF/classes/com/java2s
//ZoneWrapper.java

package com.java2s;           


import java.util.TimeZone;

public class ZoneWrapper {

  public ZoneWrapper() {
  }

  public String[] getAvailableIDs() {

    return TimeZone.getAvailableIDs();

  }

}



JSTL RT If
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core-rt" prefix="c-rt" %>
<html>
  <head>
    <title>If Caseless</title>
  </head>

  <body>
    <c:set var="str" value="jStL" />

    <jsp:useBean id="str" type="java.lang.String" />

    <c-rt:if test='<%=str.equalsIgnoreCase("JSTL")%>'> They are
    equal</c-rt:if>
  </body>
</html>




JSTL If Else
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Using Choose,Otherwise and When</title>
  </head>

  <body>
    <c:if test="${pageContext.request.method=='POST'}">Ok, we'll
    send 
    <c:out value="${param.enter}" />

    <c:choose>
      <c:when test="${param.enter=='1'}">pizza.
      <br />
      </c:when>

      <c:otherwise>pizzas.
      <br />
      </c:otherwise>
    </c:choose>
    </c:if>

    <form method="post">Enter a number between and 5:
    <input type="text" name="enter" />

    <input type="submit" value="Accept" />

    <br />
    </form>
  </body>
</html>




JSTL If No Body
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>If with NO Body</title>
  </head>

  <body>
    <c:if test="${pageContext.request.method=='POST'}">
    <c:if test="${param.guess=='5'}" var="result" />

    I tested to see if you picked my number, the result was 
    <c:out value="${result}" />
    </c:if>

    <form method="post">Guess what number I am thinking of?
    <input type="text" name="guess" />

    <input type="submit" value="Try!" />

    <br />
    </form>
  </body>
</html>



If with Body
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>If with Body</title>
  </head>

  <body>
    <c:if test="${pageContext.request.method=='POST'}">
      <c:if test="${param.guess=='5'}">You guessed my number!
      <br />

      <br />

      <br />
      </c:if>

      <c:if test="${param.guess!='5'}">You did not guess my number!
      <br />

      <br />

      <br />
      </c:if>
    </c:if>

    <form method="post">Guess what number I am thinking of?
    <input type="text" name="guess" />

    <input type="submit" value="Try!" />

    <br />
    </form>
  </body>
</html>

:

JSTL Quick 레퍼런스.

ITWeb/개발일반 2010. 3. 15. 18:15

원본링크 : http://cs.roosevelt.edu/eric/books/JSP/jstl-quick-reference.pdf
구글링 하다 찾은 자료구요..
누구나 쉽게 얻을 수 있는 자료 입니다.

제가 너무 노력 없이 얻은 것 같아 미안하긴 하지만.. ㅎㅎ 정보의 공유란 좋은게 아닌가 싶내요.. :)

즐프~
: