I encourage you to purchase "Building Portals With the Java Portlet API"
by Jeff Linwood and Dave Minter. In it you will find that JSPs are
invoked during the render phase and thus only have access to the
RenderResponse. sendRedirect does nothing in a RenderResponse. i.e, if
you must send a redirect you must do it in the action phase with an
ActionResponse (to make a long story short, you can't do it from a JSP -
which is probably a good thing as it means you are mixing business logic
with presentation).
Tushar Kapadi wrote:
How can we substitute response.sendRedirect in jetspeed?
I have to redirect to url page x or y depending upon some condition in
my struts based application. How can we achieve that?
If I run that application separately, it redirects. But if I run it as
portlet, it does not do that.
I using following in my jsp:
response.sendRedirect(response.encodeRedirectURL(redirectURL));
Thanks,
--Tushar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]