【发布时间】:2011-05-11 03:23:22
【问题描述】:
在我的项目中,我使用 SSL,但它适用于所有页面。我只想将它用于登录页面,在该页面之后它应该恢复为 HTTP 协议。我怎样才能做到这一点?我在下面找到了一种方法,但它不起作用。
<security-constraint>
<web-resource-collection>
<web-resource-name>Notify page, accessed internally by application</web-resource-name>
<url-pattern>/Login.xhtml</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Site</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
我的项目是一个 JSF 2.0 项目,我使用的是 Eclipse Helios 和 Tomcat 7.0。
谢谢。
【问题讨论】:
标签: jsf login https jsf-2 facelets