2009-09-25

JSP 태그 라이브러리

JSP 태그 라이브러리에 대한 생각들이다.


JSTL은 좋지만 지양하고 싶다. JSTL을 5년 이상 사용했는데 지금 생각하면 사용하지 않는 것이 좋은 것 같다. 그냥 자바 구분을 이용하는게 더 효과적인것 같다. EL 정도만 사용하면 될 듯...


SimpleTag를 사용하면 Body에 JSP를 사용할 수 없다.ㅠㅠ


속성에서 <%=%> 사용이 혼란스럽다.

<attribute>
  <name>name</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
</attribute>

다음은 가능하다.

name="<%= customer.getName() %>"

다음도 가능하다.

name="${customer.name}"

그러나 다음은 불가능하다.

name="Customer_<%= customer.getName() %>"



No comments: