web.xml 2.3から2.4までのissue


1,web.xmlは解決方法を認めない:
        <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">    
         
<taglib>  
  <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>  
  <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>  
</taglib>  
          
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
       
<jsp-config>  
<taglib>  
  <taglib-uri>/WEB-INF/validator-user.tld</taglib-uri>  
  <taglib-location>/WEB-INF/validator-user.tld</taglib-location>  
</taglib>  
</jsp-config>  

2,アプリケーション配備運転時にJSP異常が発生し、JSTLライブラリを使用する場合:According to TLD or attribute directive in tag file,attribute value does not accept any expressions、JSP 2を使用するためかもしれない.バージョン0で、JSTL coreライブラリの代替バージョン(RTライブラリ)は使用されていません.以下に2つの処理方法があります.JSTL corライブラリには、ELに依存するのではなく、従来の要求時の属性値に依存するtaglibダミー命令が2つあります(ELライブラリと呼ばれます.JSPP 2.0ではELがサポートされます)JSPで<%@taglib uri=http://java.sun.com/jstl/coreprefix="c"%>は2.3バージョンでもいいですが、2.4ではだめです.バージョンが互換性がないのでしょうか.<%@taglib uri="http://java.sun.com/jstl/core"prefix="c"%>を<%@taglib uri=に変更http://java.sun.com/jstl/core_rt prefix="c"%>
同時に1.1バージョンのstandardを使用します.jar
3,XMLでローカルxsdファイルを使用する方法:
<p:Person xmlns:p="http://tempuri.org/XMLSchema.xsda"
xmlns="http://tempuri.org/XMLSchema.xsd1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tempuri.org/XMLSchema.xsda D:\\Temp\\schemaTest.xsdaa ">