portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Schuster <i...@raleigh.ibm.com>
Subject RE: Problems with JetSPeed from CVS..
Date Wed, 25 Apr 2001 14:17:56 GMT
At 14:45 04/25/01, David Sean Taylor wrote:
> > So the question is: why is the generated link like it is? I
> > think it's
> > produced by the CardPortletController. I'll check it.
>
>I was looking at this yesterday. In modules/pages/JetspeedTemplatePage.java:
>
>         if ( !template.startsWith( "/" ) )
>         {
>             StringBuffer templatePath = new StringBuffer("/");
>
>but I dont think thats the real problem.
>I believe its somewhere in services/template/JetspeedTemplateService.java,
>perhaps parseScreenTemplate()

No, definetely not. the problem is that the link is malformed: A template 
parameter in jetspeed must specify a template name without any leading path 
(and without a file extension).

ingo.


>- david
>
>
>
> > -----Original Message-----
> > From: ingo schuster [mailto:ingo.apache@web.de]
> > Sent: Wednesday, April 25, 2001 3:43 AM
> > To: jetspeed-dev@jakarta.apache.org
> > Subject: Re: Problems with JetSPeed from CVS..
> >
> >
> > At 11:28 04/02/01, Santiago Gala wrote:
> > >Ignacio J. Ortega wrote:
> > >
> > >>Hola a todos:
> > >
> > >Saludos, Nacho :)
> > >
> > >
> > >>Just compiled a fresh checkout from cvs, and hitting
> > >><http://localhost:8080/jetspeed/portal/pane/RSS+Sources?temp> 
> late=%2FEcs.>
> > >>jsp> ( this is the RSSSources link main page ), i'v got a long stack
> > >>trace..
> > >
> > >The RSSSources link may page *should* be:
> > >
> > >http://localhost:8080/jetspeed/portal/pane/RSS+Sources?templa
> > te=%2Fhtml%2Fes%2FEcs.jsp
> > >
> > >or something similar (fr instead of es, etc.) The lack of
> > the "html" part
> > >causes the error. From where are you getting there?
> > >
> > >I've tested that the template name "/Ecs" gives this error,
> > while "Ecs"
> > >"/html/Ecs" or "/html/ru/Ecs" works. The first slash means
> > "absolute", and
> > >there is no layout on top of the "media type" directory.
> > >
> > >Ingo (are you there?) is the person who knows better this part of
> > >Jetspeed, the mapping from the template parameter to files.
> >
> > Ok,
> >
> > the link should either be
> >
> > http://localhost:8080/portal/pane/RSS+Sources?template=Ecs
> >
> > ( or simply http://localhost:8080/portal/pane/RSS+Sources as
> > this will
> > result in the Ecs template)
> >
> >
> > i.e. no file extension, no leading path.
> > The reasons:
> > 1. If no file extension is specified then the default
> > extension from TR.p
> > is used. So with no extensions, it is much easier to switch between
> > velocity and JSPs.
> > 2. We must not specify a path as the template service will
> > locate the file.
> > the template service knows the base path and it uses it's
> > rules to search
> > for the file in respective subdirectories. It is just luck
> > that "/html/Ecs"
> > works.
> >
> > So the question is: why is the generated link like it is? I
> > think it's
> > produced by the CardPortletController. I'll check it.
> >
> > Just to keep you informed,
> >
> >          ingo.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> >
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message