0 Replies Latest reply on Jul 12, 2005 6:08 PM by Woodler

    How to display page from another server in portlet window.

    Woodler Expert

      it is displaying the url because you don't fire an action URL on the portlet, hence the doView is called, which in turn renders the link.
      You need to fire an action request on the portlet in order to call processAction() , then your browser will be redirected.

      try this in your code:

       response.setTitle("Yahoo portlet");
       PrintWriter writer = response.getWriter();
       writer.print("<a href='http://www.yahoo.com'>yahoo</a>");
       writer.print("<a href='" + renderResponse.createActionURL() + "'>redirect me</a>");