You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Brian Demers <Br...@sybase.com> on 2004/04/01 18:58:02 UTC

can i have 2 taglibs defined in my web.xml?

Hey,

Ok here is what i am trying to do.
I need to put my own taglib into my Portlet webapp
This idea doesn't seem to be a problem...

but when i do this pluto can't load the main portaol page.

after i deploy my webapp to pluto i see that the web.xml is updated..

Pluto puts in:
<taglib>
        <taglib-uri>http://java.sun.com/portlet</taglib-uri>
        <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
    </taglib>

for a taglib...
I need to include another one...

    <taglib>
        <taglib-uri>http://www.sybase.com/taglib/syp</taglib-uri>
        <taglib-location>/WEB-INF/syp.tld</taglib-location>
  </taglib>

when i put the second one in pluto fails... it works as soon as i take it out...

if i put my tablib in the web.xml before i deploy it the portlet.tld tag doesn't get added

and this also causes a failure...

Has anyone run in to this problem??

Thanks...
-Brian Demers
Sybase Inc.

Re: can i have 2 taglibs defined in my web.xml?

Posted by Brian Demers <Br...@sybase.com>.
There is a way around it... Although its not going to fly with in my case...

Put your custom.tld in the same directory as your JSP...

or some where close and have your JSP reference it as ./custom.tld

You get the idea

-Brian Demers
Sybase Inc,


> Yes, and filed a bug report at
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26389>, which seems
> to be snoozing quietly. I wonder if this means nobody is doing anything
> serious with pluto? Or is there a way around it that I have missed?
>
>
> Cheers,
> Gerard.
>
> Brian Demers wrote:
> > Hey,
> >
> > Ok here is what i am trying to do.
> > I need to put my own taglib into my Portlet webapp
> > This idea doesn't seem to be a problem...
> >
> > but when i do this pluto can't load the main portaol page.
> >
> > after i deploy my webapp to pluto i see that the web.xml is updated..
> >
> > Pluto puts in:
> > <taglib>
> >         <taglib-uri>http://java.sun.com/portlet</taglib-uri>
> >         <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
> >     </taglib>
> >
> > for a taglib...
> > I need to include another one...
> >
> >     <taglib>
> >         <taglib-uri>http://www.sybase.com/taglib/syp</taglib-uri>
> >         <taglib-location>/WEB-INF/syp.tld</taglib-location>
> >   </taglib>
> >
> > when i put the second one in pluto fails... it works as soon as i take
it out...
> >
> > if i put my tablib in the web.xml before i deploy it the portlet.tld tag
doesn't get added
> >
> > and this also causes a failure...
> >
> > Has anyone run in to this problem??
> >
> > Thanks...
> > -Brian Demers
> > Sybase Inc.
>
>


Re: can i have 2 taglibs defined in my web.xml?

Posted by Gerard Mason <pl...@gerardmason.com>.
Yes, and filed a bug report at 
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26389>, which seems 
to be snoozing quietly. I wonder if this means nobody is doing anything 
serious with pluto? Or is there a way around it that I have missed?


Cheers,
Gerard.

Brian Demers wrote:
> Hey,
> 
> Ok here is what i am trying to do.
> I need to put my own taglib into my Portlet webapp
> This idea doesn't seem to be a problem...
> 
> but when i do this pluto can't load the main portaol page.
> 
> after i deploy my webapp to pluto i see that the web.xml is updated..
> 
> Pluto puts in:
> <taglib>
>         <taglib-uri>http://java.sun.com/portlet</taglib-uri>
>         <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
>     </taglib>
> 
> for a taglib...
> I need to include another one...
> 
>     <taglib>
>         <taglib-uri>http://www.sybase.com/taglib/syp</taglib-uri>
>         <taglib-location>/WEB-INF/syp.tld</taglib-location>
>   </taglib>
> 
> when i put the second one in pluto fails... it works as soon as i take it out...
> 
> if i put my tablib in the web.xml before i deploy it the portlet.tld tag doesn't get added
> 
> and this also causes a failure...
> 
> Has anyone run in to this problem??
> 
> Thanks...
> -Brian Demers
> Sybase Inc.