in fact, i got the method for redirect http to https ,as I add a filter in web.xml. such as,
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL</web-resource-name>
<url-pattern>/xxx/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
in this case, I can make the urls like /xxx/*
to be requested in https mode.
There are some others urls like /yyy/*
which must be requested in http mode, so how can I do that ?