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 Patrick Krug <pa...@hotmail.com> on 2002/10/11 21:33:25 UTC

Re: Spaces in URL's for Portlets cause Jetspeed not to import .xreg file

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.FileServerPortlet</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.FileServerPortlet</classname>
>
><url 
>cachedOnURL="true">http://p.moreover.com/cgi-local/page?c=Top%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>


Re: Spaces in URL's for Portlets cause Jetspeed not to import .xreg file

Posted by Glen Carl <ca...@csc-monterey.com>.
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.FileServerPortlet</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.FileServerPortlet</classname> 
>>
>>
>> <url 
>> cachedOnURL="true">http://p.moreover.com/cgi-local/page?c=Top%20stories&o=rss</url> 
>>
>>
>> </portlet-entry>
>>
>> Thanks


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