You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Luta, Raphael (VUN)" <Ra...@groupvu.Com> on 2002/10/16 18:35:16 UTC

RE: Spaces in URL's for Portlets cause Jetspeed not to import .xr eg file

This is what has been automatically generated by the OCS daemon for the feed
you want to use:


> -----Message d'origine-----
> De : Patrick Krug [mailto:patrick_krug@hotmail.com]
> Envoyé : lundi 14 octobre 2002 22:25
> À : jetspeed-user@jakarta.apache.org
> Objet : Re: Spaces in URL's for Portlets cause Jetspeed not to import
> .xreg file
> 
> 
> Yes I have tried a couple of alternatives.  I am surprised 
> that this is 
> erroring out.  I was suspecting that I was configuring it 
> wrong but I no 
> longer believe that.  I am surprised that no one else has 
> come upon this.  
> Could someone add one of the portlets to their configuration 
> and verify that 
> it does or does not work (look at my example)?
> 
> I have tried a couple of other urls and I have found that 
> URL's with '?', 
> '+', and/or '&' seem to error out as well.
> 
> I have tried to use the classes 
> "org.apache.jetspeed.portal.portlets.RSSPortlet",
> "org.apache.jetspeed.portal.portlets.NewRSSPortlet", and
> "org.apache.jetspeed.portal.portlets.FileServerPortlet".   
> All of them seem 
> to error out on the URL's with the special characters.  The 
> ones without 
> '?', '+' and '&' do not.
> 
> 
> Here are two examples :
> 
> http://p.moreover.com/cgi-local/page?index_moviereviews+rss
> ttp://www.moreover.com/cgi-local/page?o=rss&c=Jokes
> 
> <portlet-entry name="FILMPREVIEWS" hidden="false" type="ref" 
> parent="RSS" 
> application="false">
>                           <meta-info>
>                               <title>Film Previews</title>
>                               <description>Film Previews</description>
>                           </meta-info>
>                           
> <classname>org.apache.jetspeed.portal.portlets.NewRSSPortlet</
> classname>
>                           <url 
> cachedOnURL="true">http://p.moreover.com/cgi-local/page?index_
> entertainmentfilmpreviews+rss</url>
>              </portlet-entry>
> ----Original Message Follows----
> From: Glen Carl <ca...@csc-monterey.com>
> Reply-To: "Jetspeed Users List" <je...@jakarta.apache.org>
> To: Jetspeed Users List <je...@jakarta.apache.org>
> Subject: Re: Spaces in URL's for Portlets cause Jetspeed not 
> to import .xreg 
> file
> Date: Fri, 11 Oct 2002 12:51:47 -0700
> 
> 
> Patrick,
> You assumed correctly, and seem to have tried several 
> alternatives. I have 
> not attempted the blank spaces within Jetspeed, maybe someone 
> else has been 
> successful or knows if there is a bug. If you do find out how 
> to do it, 
> please post the solution.
> Thanks,
> Glen
> 
> Patrick Krug wrote:
> >I tried putting a '+', '%20' and a '&amp' (tried in IE and 
> did not work) 
> >but none of these worked.   Jetspeed errored out for the '+' 
> and '%20'.  
> >Yes I believe putting 'spaces' in url is a not a good idea 
> but moreover did 
> >them not me.  When you say rewrite with underscores, I 
> assume you mean if I 
> >had control with the name put in underscores.  Right?
> >
> >Any ideas?
> >
> >Here is one of my entries in the .xreg file.
> >
> >      <portlet-entry name="Moreover_Top20Stories" 
> hidden="false" type="ref" 
> >parent="RSS" application="false">
> >                    <meta-info>
> >                        <title>Moreover Top 20 Stories</title>
> >                        <description>Moreover Top 20 
> Stories</description>
> >                    </meta-info>
> >                    
> ><classname>org.apache.jetspeed.portal.portlets.FileServerPort
> let</classname>
> >
> >                    <url 
> >cachedOnURL="true">http://p.moreover.com/cgi-local/page?c=Top
> +stories&o=rss</url>
> >
> >    </portlet-entry>
> >
> >
> >
> >----Original Message Follows----
> >From: Glen Carl <ca...@csc-monterey.com>
> >Reply-To: "Jetspeed Users List" <je...@jakarta.apache.org>
> >To: Jetspeed Users List <je...@jakarta.apache.org>
> >Subject: Re: Spaces in URL's for Portlets cause Jetspeed not 
> to import  
> >.xreg file
> >Date: Fri, 11 Oct 2002 09:05:21 -0700
> >
> >Are you URL encoding the spaces with +'s ? Personally, I 
> think URLs with  
> >spaces is bad practice, and if you can rewrite the spaces 
> with underscores 
> >you will have better days.
> >Glen
> >
> >Patrick Krug wrote:
> >
> >>I am setting up some portlets and I noticied that I can not 
> use URLs that 
> >>have spaces.  Is there any way around this?
> >>
> >><portlet-entry name="Moreover_Top20Stories" hidden="false" 
> type="ref" 
> >>parent="RSS" application="false">
> >>    <meta-info>
> >>    <title>Moreover Top 20 Stories</title>
> >>    <description>Moreover Top 20 Stories</description>
> >>    </meta-info>
> >><classname>org.apache.jetspeed.portal.portlets.FileServerPor
> tlet</classname>
> >>
> >>
> >><url 
> >>cachedOnURL="true">http://p.moreover.com/cgi-local/page?c=To
> p%20stories&o=rss</url>
> >>
> >>
> >></portlet-entry>
> >>
> >>Thanks
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 
> 
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> --
> To unsubscribe, e-mail:   
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

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