Tomcat: Issue with redirecting from HTTP to HTTPS
问题 I am doing some modifications to an existing web application which uses Struts and deploys on Tomcat. I was trying to make my application redirect from HTTP to HTTPS when the user visits one particular page. To do that, I added to my web.xml: <security-constraint> <web-resource-collection> <web-resource-name>secured page</web-resource-name> <url-pattern>/secured.do</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user