Re: registring ressource http

2009-06-18 Thread sana
thanks very much guys :) now it works !! 2009/6/18 Rob Walker > in which case - your alias and path can probably both be "/Vue" when you > register the resource. There are other options, but this is the simplest. It > will only work though if it can find the required resource at the registered >

Re: registring ressource http

2009-06-18 Thread Rob Walker
in which case - your alias and path can probably both be "/Vue" when you register the resource. There are other options, but this is the simplest. It will only work though if it can find the required resource at the registered path + resource path within the bundle JAR that calls registerResour

Re: registring ressource http

2009-06-18 Thread sana
/Vue is a package contained in my jar , and image.jpg is in /Vue > > > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >

Re: registring ressource http

2009-06-18 Thread Rob Walker
sana wrote: how can i put image.jpg in my bundle ? jar -? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: registring ressource http

2009-06-18 Thread sana
how can i put image.jpg in my bundle ? 2009/6/18 Rob Walker > Sana - as the guys say, this will only work if the following resource > exists in the bundle calling registerResource(): > > > /home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue/image.jpg > > The handling for defaul

Re: registring ressource http

2009-06-18 Thread Rob Walker
Sana - as the guys say, this will only work if the following resource exists in the bundle calling registerResource(): /home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue/image.jpg The handling for default Http context is to strip the alias from the resource path (i.e leaving

Re: registring ressource http

2009-06-18 Thread Toni Menzel
Hi Sana, the second parameter (resource) is a bundle resource path and not a file path/folder. Are those resources in you bundle ? If you have "/Vue/img1.jpg,/Vue/img2.jpg" in your bundle, you can refer to it exactly this way. On 6/18/09, sana wrote: > hello, > > i 'm trying to registre a pictur

Re: registring ressource http

2009-06-18 Thread Alin Dreghiciu
I suppose the path you send as second param is a file system path. That will not work only if you have your custom http context and looks up resources in the file system. Here is the part from the specs: "The second parameter is an internal prefix to map this resource to the bundle’s name-space. W

registring ressource http

2009-06-18 Thread sana
hello, i 'm trying to registre a picture like a http ressource http.registerResources("/Vue","/home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue", null); and i want to use it in the background of my servlet . pw.print(""); pw.print(""); pw.print("");