i want some of my pages to be opened securely. most of those pages are started with the name "my_Account_"
as example one of those page is "my_account_add_credit_card.xhtml"
in order to do this i have put below code in to web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>my account</web-resource-name>
<description>my account</description>
<url-pattern>/my_account_*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
but it did not work. i also changed the URL patterns like below
<url-pattern>/*</url-pattern>
then it worked but the problem is that this will open the every page in HTTPS, i don't want it to be open all the pages in HTTPS. i only need to open the pages which are starts with "my_account_"
im using glassfish