Skip to Content
Former Member
Aug 28, 2007 at 09:20 PM

login iview in anonymous page? problems?



This question has already been asked several times here, but I still couldnt get this working. i..e I am trying to create a login iview like SDN (top left) in my portal. So, I created a basic JSP dynpage like this

<FORM name="logonForm" method="post" action=" /irj/servlet/prt/portal/prtroot/">
  <input name="login_submit" type="hidden" value="on">
  <input type="hidden" name="login_do_redirect" value="1"/>
  <input name="j_authscheme" type="hidden" value="default">
  <table border="0" align="left" valign="top">
      <td > 
          User Id
      <td width="183" height="20">
        <input name="j_user" type="text" value="">
      <td width="161" height="20">
      <td width="183" height="20">
        <input name="j_password" type="password">
      <td colspan="2" height="20">  </td>
      <td colspan="2">
        <input type=submit value="Log on">

so when the user clicks on login, if it is sucessful, it redirects me to the homepage, but the problem is when the authentication fails, i.e. it is redirected to SAP standard login screen with the error message, which i want to avoid. I want the error message in the same JSP dynpage above just like SDN.

THe other way I tried is

I looked at this thread


I created an abstract portal component and inculded it in the action tag of the above html document.

In the abstract portal component, the code that i have written is

UMFactory.getLogonAuthenticator().logon(req, res, "uidpwdlogon");

and it logs me in, but just shows me a blank page. it doesnt redirect me to the home page or if the login is failed, it redirects me to the SAP default login screen just like the first solution.

how can this achieved without modifying the login moduels. any help is appreciated?


any help ??