You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Glenn Golden <gg...@umich.edu> on 2002/03/26 02:04:02 UTC

Turbine questions

Jason -

I'm working on Jetspeed, and am tracking down a problem with some of the
action code in Jetspeed, which was recently changed to start calling for a
URL redirect.  With Internet Explorer, this doesn't work.  The problem is
that after the code does this:

RunData.getResponse().sendRedirect(...)

the Page in effect (it's a JetspeedTemplatePage, but the doBuild()code is in
Turbine's DefaultPage) just keeps going on after the action is processed to
build the screen, and since this code is doing output, Turbine's doGet()
doesn't even have a chance to do the redirect there...

What I'm thinking is that instead of doing it directly as above, the action
could set:

data.setStatusCode(302);
data.setRedirectURI("...");

Then DefaultPage's doBuild() could check for this and NOT do any more
processing, and get things setup so that Turbine's doGet() would do the
right thing to do the redirect... or we could introduce a redirect exception
that could be thrown and caught by Turbine's doGet()... or something like
this.

The thing is that once you set the redirect, your not supposed to write any
more body to the response, and this is what is happening.

While Netscape doesn't care, IE just sits there waiting for more input
forever when it gets a redirect and body in this way.

So... What do you think?  Also, I wanted to play around with this possible
solution, but I don't see how to build Turbine.  I have the latest code from
CVS, and I'm familiar with what Jetspeed does to build (i.e. go to the build
directory and say "build war"), but Turbine's build directory is empty at
the moment...  Can you help here?

Thanks.

- Glenn
 
--------------------------------------------
Glenn R. Golden, Systems Research Programmer
University of Michigan School of Information
ggolden@umich.edu               734-615-1419
http://www-personal.si.umich.edu/~ggolden/
--------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Turbine questions

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Glenn Golden <gg...@umich.edu> wrote:
> So... What do you think?  Also, I wanted to play around with this
> possible
> solution, but I don't see how to build Turbine.  I have the latest
> code from
> CVS, and I'm familiar with what Jetspeed does to build (i.e. go to
> the build
> directory and say "build war"), but Turbine's build directory is
> empty at
> the moment...  Can you help here?
> 

Turbine does things differently (or more correctly Jetspeed does
things differently...)

You need to have installed Ant separately - the idea being that it is
becoming standard and thus pointless to include it in all projects.

Then to build turbine, there are 2 steps

1) get all the related libs - to do this run 'ant update-jars' from
the root turbine directory - not the build directory - it is defunct.
 You will probably need to set a lib.repo property locally so that
ant knows where to save the libraries.  Note - this target downloads
any out of date jars from the net - but only ones with "good" open
source licences, eg you have to download activation separately.

2) now you can build turbine - so run 'ant' - this will produce you a
jar, all things being equal...

To try this with jetspeed, copy it across - AND ANY RELATED JARS THAT
MAY HAVE CHANGED, eg stratum or the commons stuff.

HTH,
Chris

=====
http://www.soccer2002.org.uk - join in and win CA$H!

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>