JSF 1.2 requires java 1.5 or later, JSP 2.1, JSTL 1.2 and a Java Servlet 2.5 implementation.
1.加入包myfaces-api-1.2.6.jar.myfaces-impl-1.2.6.jar.tomahawk12-1.1.8.jar
替换jstl-1.2.jar(405KB),此包已包含standard.jar,去除重复
替换commons-fileupload.jar(1.1)(inputFileUpload需要此版本,否则报错)
去除shale-core-1.0.4.jar。shale-validator-1.0.4.jar(shale不用了)
2.修改taglibs.jsp
内容如下:
<%@ taglib uri="http://corejsf.com/validator" prefix="v" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://brilliance.com.cn/jsf" prefix="be" %>
3. 查找war包下的所有jsp页面,replace <x: as <t: 以及 replace </x as </t
4. 修改web.xml
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
修改 faces-config.xml faces-config-ext.xml
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
重新编译corejsf-validator-1.0.jar.begen-tag1.2.jar
5.修改expresspage.jsp
因jsp2.1自动支持el,所以去除默认el解析,需加上语句以免报错 <%@page isELIgnored="true"%>
1.加入包myfaces-api-1.2.6.jar.myfaces-impl-1.2.6.jar.tomahawk12-1.1.8.jar
替换jstl-1.2.jar(405KB),此包已包含standard.jar,去除重复
替换commons-fileupload.jar(1.1)(inputFileUpload需要此版本,否则报错)
去除shale-core-1.0.4.jar。shale-validator-1.0.4.jar(shale不用了)
2.修改taglibs.jsp
内容如下:
<%@ taglib uri="http://corejsf.com/validator" prefix="v" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://brilliance.com.cn/jsf" prefix="be" %>
3. 查找war包下的所有jsp页面,replace <x: as <t: 以及 replace </x as </t
4. 修改web.xml
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
修改 faces-config.xml faces-config-ext.xml
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
重新编译corejsf-validator-1.0.jar.begen-tag1.2.jar
5.修改expresspage.jsp
因jsp2.1自动支持el,所以去除默认el解析,需加上语句以免报错 <%@page isELIgnored="true"%>