13 Replies Latest reply: Sep 30, 2012 1:36 PM by Antoine Herzog RSS

    Portal URL Parameters pass to Portlet ?

    Marc Stuart Newbie

      Hello, I am trying to append parameters to the Portal URL, and the retrieve them in the portlet.

       

      If I append a name value pair to the portal page

       

      http://localhost:8080/portal/public/classic?some_param=some_value

       

      How can I

      In my portlet.xml I tried using public-render-parameter's ala :

       

      <supported-public-render-parameter>some_param</supported-public-render-parameter>
         </portlet>
           <public-render-parameter>
                   <identifier>some_param</identifier>
                   <qname xmlns:x="http://sun.com/params">some_param</qname>
              </public-render-parameter>

       

       

      and then in my portlet code

       

       

          public void doView(RenderRequest request, RenderResponse response) {
                    try {
                           String someVar = request.getParameter("some_param");

       

      But that doesn't seem to work, and even

       

      String urlString = request.getRequestURL().toString();

       

      doesn't offer me up a URL String.

       

      Any ideas ??