How do I get SSL to work with relative paths on a JSP page. Regardless of whether I'm calling a servlet in a form or just linking to a separate page, is there a way to guarantee that the paths "/foo.do", or "/foo.jsp" will automatically go to https://www.mydomain.com/foo.do?
The options I see are just hard-coding the path (not desirable) or using a filter to re-write the url in transit. However, I searched online and could not really find an existing servlet for this function, leading me to believe it isn't the best approach.