We need to use a custom logon application that sits over the top of all our companyu2019s web sites to authenticate the user into the portal. Weu2019ve already created a custom logon module that will look for the existence of the custom user authenticated form fields and verifies them and logs the user in. So if the user goes directly to the custom logon application and then that application redirects the user to the portal the user is logged into the portal without seeing the portals main logon page. However, the documentation says that we canu2019t do a redirect in the custom logon module, so if the user hasnu2019t been authenticated by our custom logon application, then it drops the user down to the umLogonPage.jsp.
What weu2019d like to do is that if the user gets to this page, to just redirect the user to the custom logon application. We modified the umLogonPage.jsp (following the directions for creating our own logon page PAR file) to add a redirect to the logon page.
<%@ include file="/umLogonTopArea.txt"%>
<%
* String redirectURL = "https://customLogonApplication.com/login/sso/SSOService?app=sap_portal";*
* response.sendRedirect(redirectURL);*%>
However now we get an error saying the redirect statement isnu2019t valid.
Here is the information from the log when we try to access: http://host:port/irj/portal
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: /usr/sap/EPT/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.thomsonreuters.portal.runtime.logon/work/_sapportalsjsp_umlogonpage.java:436: cannot resolve symbol
symbol : method sendRedirect (java.lang.String)
location: class com.sapportals.portal.prt.servlets_jsp.server.jsp.response.JSPResponse
response.sendRedirect(redirectURL);
^
It looks like SAP has somehow removed the redirect method from the response object. However, the interesting thing is that if I try to access Visual Composer at http://host:port/VC the redirect works.
Is there a different way of accomplishing what Iu2019m trying to do? Is there something wrong with the redirection code that Iu2019ve added to the umLogonPage.jsp?
Points will be awarded for helpful answers!
Thanks,
Jeff