JSF2.0使用tomahawk T标签 web.xml 文件配置
2014-08-06 10:35
477 查看
工程有jsf2.0的jar包和tomahawk.jar,只要运行*.xhtml文件就报错,应该怎么配置?
我的web.xml:
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
我的web.xml:
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
相关文章推荐
- jsf、Spring、Hibernate 集成 web.xml配置文件
- JSP 2.0 web.xml不再直接支持<taglib>标签配置
- JSP 2.0 web.xml不再直接支持<taglib>标签配置
- 在web.xml文件中使用EL表达式配置变量例子
- (六)Webxml文件中添加taglib以及在页面中使用标签
- 在web.xml文件中使用EL表达式配置变量例子
- spring 在web.xml 里面如何使用多个xml配置文件
- 复习web.xml配置文件的使用
- 谷歌验证码非web.xml非servlet拦截 使用配置文件自定义加载,防止多次点击(防js攻击)
- validation.xml验证文件的配置 常用struts标签使用举例--bean篇
- Struts2.0配置文件(web.xml)
- web.xml配置文件中的<context-param>标签
- web.xml配置文件中标签<listener-class>报错
- Struts配置文件详解,web.xml以及struts-cofig.xml,以及struts-cofig.xml中各个标签的作用
- Struts2.0配置文件(web.xml) .
- Struts2.0配置文件(web.xml)
- struts2.0 读取配置文件 在直接使用标签读取
- web.xml配置文件标签元素详解
- spring 在web.xml 里面如何使用多个xml配置文件
- [Web]Servlet中使用Quartz【二】基于配置文件和jobs.xml触发任务执行