Have you set up the security-constraint in your web.xml for those pages?
security-constraint
web-resource-collection
web-resource-nameLogin 4 Everything/web-resource-name
!-- Define the context-relative URL(s) to be protected --
url-pattern/private/*/url-pattern
Howdy,
A filter can be easily written for this purpose:
- Check request URL
- If request is for secure page, forward to different port (the one you
configure in server.xml to be an SSL connector) on same server with same
request path.
- Otherwise, pass request on...
Yoav Shapira
Millennium