0 Replies Latest reply on May 5, 2009 1:15 PM by raffaele.letizia

    problem with portlet:renderURL

    raffaele.letizia

      Hi,
      i have a problem with <portlet:renderURL/>. I use a form for send a parameter in a doView() but doesn't pass any param

      my form in jsp is:

      form action="<portlet:renderURL/>" method="POST"
      input type="text" name="lalla"/
      input type="submit" name="op" value="Ricerca"/
      /form

      while in the doView i have:

      try
      {
      if((request.getUserPrincipal() != null) && (request.getUserPrincipal().getName() != null))
      {
      String userName = request.getUserPrincipal().getName();
      String jspName = null;
      /*verifica per l'admin che ha il controllo totale */
      System.out.println(userName);

      if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("Ricerca")))
      {
      if (userName.equals("admin"))
      {
      request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
      jspName ="/WEB-INF/jsp/listuser.jsp";
      }
      else
      {
      request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
      jspName ="/WEB-INF/jsp/listuser.jsp";
      }
      }

      please help me