I'm not so familiar with the jsp portlets (working mostly with velocity), but by the time the portlets are being composed (which is likely when the jsp is invoked) it's far too late for a redirect - the response has been committed.
If you use the turbine action event stuff, where there's an "action" parameter in the request, this action class will be called FIRST, before the page is rendered, by turbine, and there's a way to do a redirect by setting the rundata from there. - Glenn --------------------- Glenn R. Golden, Systems Research Programmer University of Michigan School of Information [EMAIL PROTECTED] 734-615-1419 > -----Original Message----- > From: Kundrot, Steven [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 8:48 AM > To: '[EMAIL PROTECTED]' > Subject: Redirecting In JetSpeed > > > I'm having problems redirecting inside of JetSpeed, > specifically inside of a JspPortletAction. I've read the > archives and it looks like I'm not alone. Has anyone figured > out how to perform a clean redirect? I've tried a bunch of > combinations and I'm running into the same problems as other > users. I've tried the following: > > 1. <jsp:forward ....> inside Jsp --> IlegalStateException - > response already committed. 2. rundata.setRedirectURI( ... > ); rundata.setStatusCode( 302 ); --> Nothing happens 3. > rundata.getResponse().sendRedirect( .... ); --> IlegalStateException. > > The only thing that I can get to work is to use the a META > tag (ie. <META HTTP-EQUIV=Refresh CONTENT="0; URL=www.google.com"/> ) > > Is there any other way to do the redirect? I can't believe > that my only option is an ugly meta tag? > > Environment: > Jetspeed 1.4b2 (nightly build from 9/9/2002) > > Any help would be appreciated > > Thanks, > Steve > > The information transmitted in this communication is intended > only for the person or entity to which it is addressed and > may contain confidential and/or privileged material. Any > review, retransmission, dissemination or other use of, or > taking of any action in reliance upon, this information by > persons or entities other than the intended recipient is > prohibited. If you received this in error, please destroy any > copies, contact the sender and delete the material from any computer. > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
