[jboss-user] [JBoss Portal] - ActionRequest.sendRedirect doesn't work properly

saint_ua do-not-reply at jboss.com
Mon Sep 3 09:25:35 EDT 2007

My environment:
JBoss Portal Version: 2.6.1
I have downloaded binary files from JBoss site
JBoss AS Version: 4.2.1
Database Vendor and Version: PostgerSQL Server 8.1
OS Platform: Windows 2003 Server

I have the followed problem ActionRequest.sendRedirect method not working on Portal 2.6.1 (On  Jboss Portal 2.4.1 is everething OK). I have tried to run simple test. I have downloaded HelloWorldPortlet and have changed some code to test sendRedirect method. I have changed ONLY HelloWorldPortlet.java. Here is the source code:

package org.jboss.portlet.hello;

import javax.portlet.*;
import java.io.IOException;
import java.io.PrintWriter;

public class HelloWorldPortlet extends GenericPortlet
   protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
      PrintWriter writer = rResponse.getWriter();
      writer.write("Hello World!");
      writer.write("<form name='form1' method='post' action='" + rResponse.createActionURL() + "'>");

  public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, PortletSecurityException, IOException {
    System.out.println("!!!!!!!!!!!!!!!!!!! redirecting to http://www.jboss.org"  );

 It's not working. After pressing submit button on HelloWorld portlet I have empty page with URL "http://localhost:8080/portal/portal/default/default/HelloWorldPortletWindow?action=1".

Please help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080504#4080504

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080504

More information about the jboss-user mailing list