i need to make the URL for my form action but the form should be submitted under https
currently the underlying system running on 9002 port for the HTTPS.I can not use the following option in my JSP page
<form:form action="${request.contextPath}/springSecurity/login"
method="post" commandName="loginForm" target="guestFrame">
since when in HTTP the context path is coming as HTTP and the system will throw an exception as form should be submitted by HTTPS.
i can not hard code the action URL as currently its under develoment as the host name is localhost
, even the HTTPS port is configurable so its even can not be hard-coded.
Is there any way i can create the URL in my JSP using JSTL or any other way so as to i can submit the form under HTTPS