I have 3 pages that send a user's password to the server, so I need them to be sent over SSL. So I declared them in the DD:
The problem is that, after I leave one of the pages (and I no longer need SSL), all the web app links are still pointing to the secure mode, so I can't switch back to "normal" mode:
* before: HTTP://<host>:8080/path * after: HTTPS://<host>:8181/path
Nick White Ro wrote:Yes, but is there a way to build the links with full path without hard-coding the host name, the port and the app name?
Yes. Have a look at the methods on the HttpServletRequest object (and it's super object, ServletRequest).
There are methods like getServerName(), getScheme(), getProtocol(), getLocalPort(), getServletPath() and so on.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop