It has been brought to my attention that some members of the Tomcat community have expressed a desire to see a requirement lower than J2SE 1.4 in JSP 2.0.정리하자면, JSP 2.0의 타 언어 디버깅 지원 기능이 J2SE 1.4를 요구하기 때문이라는 것입니다. 의외로 현재 서블릿 규격 2.4와 JSP 2.0 규격은 J2SE 1.4의 NIO나 기타 다른 기능의 언급을 하지 않고 있습니다.
First, let me reassure you that the JSP 2.0 specification is not final. Actually, we are in Proposed Final Draft phase, and we are explicitly soliciting feedback! Early feedback is always much appreciated. As per the cover of the specification, the appropriate forum for feedback is jsp-spec-comments@eng.sun.com.
Regarding the J2SE 1.4 requirement, the expert group discussed the topic in early August (as issue "[OTH-17] J2SE Version Requirement") and there was concensus from the different experts, but the EG is open to additional comments. You can send mail directly to jsp-spec-comments@eng.sun.com, or, maybe better in this case, talk directly to the Apache representatives to the Expert Group: Ricardo Rocha (ricardo@apache.org) and Geir Magnusson Jr. (geirm@apache.org). In general the more feedback the rep has from his community the better for the Expert Group.
For what it"s worth, the only technical reasons we require J2SE 1.4 are:
1. We require support for JSR-45 (Debugging Support for Other Languages)
2. We declare support for Unicode 3.0 in our I18N chapter.
Actually, JSR-45 is quite important for the platform as a whole. For example, it was recently pointed out to me that there"s a bug report against Tomcat 5 because we didn"t re-implement the pseudo-debug comments that Jasper 1 used to create, and that some tools relied on. Standard debugging annotations is an important enabler, and it would be a shame to have to wait even longer for it.
From my perspective, the most significant reason to require J2SE 1.4 is that it would be best if people can write portable tag handlers that utilize J2SE 1.4 libraries, and be able to use them in any JSP 2.0 application. Do we really want to stagnate on J2SE 1.2 APIs forever?
I"ve compiled a list of new features in J2SE 1.3 and J2SE 1.4 that I believe would be of use to page authors and tag library developers that would decide to use JSP 2.0. It would be awesome, IMHO, if page authors and tag library developers could rely on these features being present in any JSP 2.0 compliant container. This list was also discussed in the Expert Group.
J2SE 1.3 adds (among other features):
* Built-in JNDI
* RMI/IIOP
* CORBA ORB
* PNG support (for image taglibs)
* Various Security enhancements
* Improved socket support
* HTTP 1.1 client-side support
* DynamicProxy
* Serialization enhancements
* Collections enhancements
* BigDecimal and BigInteger enhancements
* StrictMath
* Timer API
* Delete-on-close mode for opening zip and jar files
* JPDA tool support
J2SE 1.4 adds (among other features):
* XML Processing
* New I/O APIs
* Security: Java Cryptography integrated
* Security: GSS-API, Certification Path API
* Pluggable Image I/O framework
* Print Service API
* Standard Logging APIs
* Long-term Persistence of JavaBeans
* JDBC 3.0
* Assertions
* Preferences API
* Chained Exception Facility
* IPv6 Networking Support
* JNDI enhancements
* CORBA ORB with POA
* *** JSR-45 (Debugging Support for Other Languages) ***
* *** Unicode 3.0 ***
* Currency class
* Collections Framework enhancements
* Built-in support for Regular Expressions
그런데, 여기서 주의깊게 볼만한 점은 shared/classes-shared/lib-각 컨텍스트/WEB-INF/classes-각 컨텍스트/WEB-INF/lib 순으로 클래스를 불러들인다는 것이죠. 덧붙여서 conf/web.xml-각 컨텍스트/WEB-INF/web.xml 순으로 적용되며, 후자의 web.xml은 전자의 정의를 번복할 수 있습니다. 예를 들어 conf/web.xml에서 다음과 같이 한 것을default iasandcb.DefaultServlet
iasandcb 컨텍스트의 WEB-INF/web.xml에서 아래와 같이 재정의 하면,index.html index.htm index.jsp
iasandcb 컨텍스트에서 http://localhost:8080/iasandcb/와 같이 부를 경우 index.jsp는 자동호출되지 않습니다. 톰켓 5도 이런 원리를 따르고 있습니다.index.html index.htm
이전 글 : Mac OS X를 좀더 자세히 알자!
다음 글 : 『Information Architecture for the World Wide Web』의 저자와의 인터뷰 제2편: 북극곰과 함께한 생활, 피터 모빌과의 인터뷰
최신 콘텐츠