JSFWeb配置Word文档下载推荐.docx
- 文档编号:17998233
- 上传时间:2022-12-12
- 格式:DOCX
- 页数:6
- 大小:21.07KB
JSFWeb配置Word文档下载推荐.docx
《JSFWeb配置Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《JSFWeb配置Word文档下载推荐.docx(6页珍藏版)》请在冰豆网上搜索。
xmlns:
xsi="
http:
//www.w3.org/2001/XMLSchema-instance"
xsi:
schemaLocation="
<
!
--**********JSF参数设置*************************************-->
context-param>
description>
详见:
javax.faces.application.ProjectStage类
可取值:
Development
UnitTest
SystemTest
Production
/description>
param-name>
javax.faces.PROJECT_STAGE<
/param-name>
param-value>
Development<
/param-value>
/context-param>
指示是在客户端(client)还是在服务器端(server)保存UI组件的状态和
session信息,server表示保存到服务器端,client表示保存到客户端,
默认为server。
javax.faces.STATE_SAVING_METHOD<
client<
当使用扩展名映射(后缀映射)时,所使用的资源的默认后缀
默认为.jsp,它自于javax.faces.application.ViewHandler
类中的常量.常量的名字是DEFAULT_SUFFIX值相当于"
.jsp"
javax.faces.DEFAULT_SUFFIX<
.xhtml<
--
当在这个应用中处理JSF请求时,
所使用的生命周期实例的标识符.
默认的生命周期模型
javax.faces.LIFECYCLE_ID<
-->
--*********************************************************-->
逗号分隔的上下文相关的资源路径列表,
JSF将在装载WEB-INF/faces-config.xml之前载入这些资源
javax.faces.CONFIG_FILES<
/WEB-INF/faces-config.xml
设置自定义的Facelets标签库文件路径
javax.faces.FACELETS_LIBRARIES<
/WEB-INF/guessnumber.taglib.xml<
SetthisflagtotrueifyouwanttheJSF
ReferenceImplementationtoverifythatalloftheapplication
objectsyouhaveconfigured(components,converters,
renderers,andvalidators)canbesuccessfullycreated.
Defaultvalueisfalse.
告诉JSF验证其可以创建应用对象(组件,呈现器,转换器等),
那么设置标志为true,默认值为false。
com.sun.faces.verifyObjects<
false<
SetthisflagtotrueifyouwanttheJavaServerFaces
ReferenceImplementationtovalidatetheXMLinyour
faces-config.xmlresourcesagainsttheDTD.Default
valueisfalse.
告诉JSF根据DTD验证配置文件,
com.sun.faces.validateXml<
资源更新检查周期<
com.sun.faces.resourceUpdateCheckPeriod<
-1<
当状态保存方法设置为server时,
控制会话中保存的视图数量.
无默认值
com.sun.faces.NUMBER_OF_VIEWS_IN_SESSION<
SettingthistotruewillcausetheFaceletViewHandler
toprintoutdebuginformationinaneasytousescreen
whenanerroroccursduringtherenderingprocess。
很显然,为了方便开发,我们应该设置。
facelets.DEVELOPMENT<
true<
facelets.SKIP_COMMENTS<
--**********JSF基本设置*************************************-->
--FacesServlet-->
servlet>
servlet-name>
FacesServlet<
/servlet-name>
servlet-class>
javax.faces.webapp.FacesServlet<
/servlet-class>
load-on-startup>
1<
/load-on-startup>
/servlet>
--FacesServletMapping-->
ThismappingidentifiesajsppageashavingJSFcontent.
Ifa
requestcomestotheserverforfoo.faces,thecontainerwill
sendtherequesttotheFacesServlet,whichwillexpecta
correspondingfoo.jsppagetoexistcontainingthecontent.
servlet-mapping>
url-pattern>
*.faces<
/url-pattern>
*.xhtml<
/url-pattern
*.jsf<
/faces/*<
/servlet-mapping>
--**********Web基本设置************************************-->
session-config>
session-timeout>
30<
/session-timeout>
/session-config>
welcome-file-list>
welcome-file>
index.html<
/welcome-file>
index.jsp<
index.xhtml<
/welcome-file-list>
--**********安全设置****************************************-->
login-config>
auth-method>
FORM<
/auth-method>
realm-name/>
form-login-config>
form-login-page>
/login.jsp<
/form-login-page>
form-error-page>
/loginerror.jsp<
/form-error-page>
/form-login-config>
/login-config>
security-role>
role-name>
manager<
/role-name>
/security-role>
employee<
security-constraint>
web-resource-collection>
web-resource-name>
jsf<
/web-resource-name>
javaserverfaces<
/security/*<
/web-resource-collection>
auth-constraint>
/auth-constraint>
/security-constraint>
/web-app>
(申明:
参考《JSF实战》部分网上电子档。
)
(over)
本文出自“丑哥哥”博客,请务必保留此出处
0人
了这篇文章
类别:
JSF┆技术圈(7)┆阅读(779)┆评论(0)┆推送到技术圈┆返回首页
上一篇课件:
演示弹球碰撞墙体的效果(Swing带源码)下一篇JSFXML页面模版
相关文章
∙JSFXML页面模版
∙如何使用XML
∙什么是XML?
∙验证XML是否符合Schema
∙XMLDOM浏览器差异
∙解决Excel2007的"
有XML错误的/xl/s..
∙JSF生命周期概述
∙FLASH+XML求职简历制作教程
(一)
∙今天又学了一招基于XMLHTTP实现表示层的设计
∙XMLDOM-属性和方法
文章评论
发表评论
昵
称:
登录
快速注册
验证码:
点击图片可刷新验证码请点击后输入验证码博客过2级,无需填写验证码
内
容:
同时赞一个
窗体底端
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- JSFWeb 配置