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

Hello!
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
   {
      rResponse.setContentType("text/html");
      PrintWriter writer = rResponse.getWriter();
      writer.write("Hello World!");
      writer.write("<form name='form1' method='post' action='" + 
rResponse.createActionURL() + "'>");
      writer.write("");
      writer.write("");
      writer.close();
   }

  public void processAction(ActionRequest actionRequest, ActionResponse 
actionResponse) throws PortletException, PortletSecurityException, IOException {
    System.out.println("!!!!!!!!!!!!!!!!!!! redirecting to 
http://www.jboss.org";  );
    actionResponse.sendRedirect("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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to