Hi All,
I am working on a custom login page.
I have imported com.sap.portal.runtime.logon.par >> created a new JSPDynpage component with jsp file: 'showlogon.jsp' (copied umlogonpage.jsp and made changes according to our requirements)
The login works fine!!
But, there is no message being displayed when user authentication fails.
<div class="urMessageArea"> <% if ( error.getMessage() != null ) { %> <!-- display error message if there is one --> <div class="urMsgBarErr"> <span class="urMsgBarImgError"><img height="12" width="12" src="<%=webpath%>css/common/1x1.gif"></span> <span class="urTxtStd" tabindex="0"> <%=EncodeHtmlTag.encode(logonMessage.print(error.getMessage()))%> </span> </div> <% }else{%> error.getMessage()::<%=error.getMessage()%> <% }%> </div>
The out come of above code is always=
error.getMessage()::null
I have jsp:useBean to access ErrorBean:
<jsp:useBean id="error" class="com.sap.security.core.util.ErrorBean" scope='request'/>
I don't know why the value of error.getMessage() is null...
In the folder -> dist\PORTAL-INF\lib --> In addition to the jars com.sap.portal.runtime.logon_api.jar and umelogonbase.jar, I also added com.sap.security.core.jar --> which has ErrorBean class
Has anyone encountered such a scenario? I'd really appreciate any inputs.. Thanks,
Regards,
SK.
Edited by: SK on Jul 22, 2009 6:38 PM