Java 未在WebLogic 10.3.6上呈现JSF标记
我制作了简单的facelet,但上面的标签并没有呈现出来。 已处理来自支持bean的值,但未呈现标记。 我还将ApacheCXF用于Web服务 应用服务器:WebLogic 10.3.6 Web.xml:Java 未在WebLogic 10.3.6上呈现JSF标记,java,jsf,weblogic,Java,Jsf,Weblogic,我制作了简单的facelet,但上面的标签并没有呈现出来。 已处理来自支持bean的值,但未呈现标记。 我还将ApacheCXF用于Web服务 应用服务器:WebLogic 10.3.6 Web.xml: <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</se
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
Facesservlet
javax.faces.webapp.FacesServlet
1.
Facesservlet
*.xhtml
index.xhtml
依赖项:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.0-b13</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.0-b13</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
com.sun.faces
JSFAPI
2.0.0-b13
编译
com.sun.faces
jsf impl
2.0.0-b13
编译
javax.servlet
jstl
1.2
javax.servlet
servlet api
2.5
Xhtml facelet:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<title>DIS</title>
<h:outputScript library="javascript" name="jquery.js"/>
<h:outputScript library="primefaces" name="primefaces.js"/>
<h:outputScript library="javax.faces" name="jsf.js"/>
</h:head>
<h:body>
<h:outputLabel value="#{sessionViewBean.test}"/>
</h:body>
</html>
数字化信息系统
输出页面:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<title>DIS</title>
<h:outputScript library="javascript" name="jquery.js"></h:outputScript>
<h:outputScript library="primefaces" name="primefaces.js"></h:outputScript>
<h:outputScript library="javax.faces" name="jsf.js"></h:outputScript>
</h:head>
<h:body>
<h:outputLabel value="lolka"></h:outputLabel>
</h:body>
</html>
数字化信息系统
如果有人感兴趣,我找到了解决方案,我的错误在xhtml页面上。h标记的xmlns定义错误xmlns:h=”http://xmlns.jcp.org/jsf/html“
右边的是xmlns:h=”http://java.sun.com/jsf/html“
这不是“错”,新的法律标准使用的是xmlns.jcp.org,而java.sun.com已经过时,主要问题是WebLogic(Oracle)不支持java社区。