1 Reply Latest reply on Jun 5, 2006 5:09 AM by julien1

    how to create portlet URL with /auth

      Hello,

      I want to create a URL string from a portlet.

      THe URL need to invoke the authentication of the user.

      like /portal/auth/index?.....

      I am not sure how to command the portal renderrespoonse to create the the correct URL with "auth" portion. I went through the jboss portal source code, it seems that some code like "wantAuthenticated" ...... But i don't know how to make it work.

      Please help.

      yang

        • 1. Re: how to create portlet URL with /auth

          Try the following :


          PortalNode window = ((JBossRenderResponse)resp).getPortalNode();
          PortalNodeURL url = ((JBossRenderResponse)resp).createRenderURL(window);
          url.setAuthenticated(Boolean.TRUE);
          String s = url.toString();