3 Replies Latest reply on Oct 28, 2005 8:17 AM by bsmithjj

    User portlet

    patrickdalla

      I had created a portlet that will contain a login page for authentication in portal, and this portlet is placed on initial page.

      The form action is configure as "j_security_check".

      Sometimes the form functions, but some times the following error occur.

      message: Invalid direct reference to form login page
      description: The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).

      Does anybody know why?
      How can I configure my portlet to make this work?

        • 1. Re: User portlet

          The subject of this posting is completely wrong - logging in to a servlet container via j_security_check has nothing to do with a User Portlet.

          Anyways, I answered this question here:

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70094

          Hope it helps you.

          • 2. Re: User portlet
            ashokhament

            Brad Smith,
            As per the instructions given by you in the link are working fine.
            I have configuerd login page but not logout.
            As per your code, redirection to the logout page is done at view.jsp that is the redirected page from login page.
            But after click the link logout in user portal the control will not go the same page as for login link.
            Then how and where can redirect to the logout.jsp

            • 3. Re: User portlet

              did you create logout.jsp in 'jboss-portal.sar\portal-server.war\' directory?

              If so, your login.jsp can contain code like this for getting the user back into the flow of your portal/web-app:

              logout.jsp

              <% session.invalidate();
               response.sendRedirect("http://myserver.com:8080/login/logout.jsp");
              %>
              


              Hope this helps.