At 14:03 01/12/01, Santiago Gala wrote:


>David Sean Taylor wrote:
> >
> > Since we switched over to JSP layouts, I can't get Jetspeed to work with
> > Apache anymore.
> > I now have the default page coming up by adding
> >
> > DirectoryIndex index.html index.jsp
> >
> > But the problem is when you click on any link with /portal in it.
> > See what I mean: http://www.bluesunrise.com/nile/
> > Looks ok, but then click on 'RSS Resources' or 'Please login to 
> Jetspeed' or
> > any link with /portal in it.
> > (http://www.bluesunrise.com/nile/portal/screen/Login)
> > You get 'The page cannot be found'
>
>I got one step beyond. If you are using mod_jk, and the file
>conf/mod_jk.conf-auto, it will not work as such. You will need to do
>something like:
>JKMount /portal/* ajp12
>
>The problem when I do it is that the pages start working, but are
>delivered to the client as text/plain. I can see the source code and
>notice that the pages have the right content.
>
>I think the problem is that we are flushing the response stream without
>setting the proper ContentType. I tried to trace it, but I could not
>find where it is done. Maybe Ingo could check if the ContentType is set
>anywhere? It shoud be set to whatever is the preferredMimeType, but it
>should be done before we start flushing the Response object.

The MimeType is set in JetspeedJspLayout - and I'm sure that's before the 
response is flushed.
This code changed the last days, make sure you are using the latest version.


>I don't fully understand the Response process when templates are used.

With JSPs we do no longer use the DefaultPage but the JspPage instead.
This calls JestpeedJspLayout which sets the MimeType, Charset, etc., calls 
doBuild() of the (ecs) screen, stores the resulting ConctreteElement in the 
Request, and forwards the request to default.jsp. There are two default.jsp 
files, and they are choosen depending on the requested mimetype.
The default.jsp includes the navigation JSPs (by using the 
JetspeedNavigationTag) and the Ecs screen (by using the EscScreenTag).

I'm changing this a little bit at the moment so that the default.jsp 
includes a screen *JSP*. I already translated most of the "special" screens 
to JSPs (login, CreateNewAcount etc.) so that basically the Home Screen 
will be left as the only screen that actually uses ECS elements.
I'm planning to commit this beginning of next week.

ingo.

> >
> > Does this work on Websphere?
> >
> > What does this do:
> >
> > <jsp:forward page="portal/"/>
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/[email protected]/>
> > List Help?:          [EMAIL PROTECTED]
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search: <http://www.mail-archive.com/[email protected]/>
>List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to