Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » some question about resource registry
some question about resource registry [message #62453] Fri, 23 November 2007 11:09 Go to next message
lizzz is currently offline lizzzFriend
Messages: 4
Registered: July 2009
Junior Member
I implement a file upload/download system use RAP. It's user interface
development is so easy. but i don't konw how can i registry my files. for
example,I have a file projectroot/resource/foo.tar, the "resource" is a
Folder, foo.tar is a tar file.when try to download the file
use"http://localhost:9999/resource/foo.tar" or
"http://localhost:9999/25/resource/foo.tar"(25 is the bundle Id),i get
this

HTTP ERROR: 404

ProxyServlet: /resource/foo.tar

RequestURI=/resource/foo.tar

Powered by Jetty://

anybody help me ,plz. Thanks
Re: some question about resource registry [message #62531 is a reply to message #62453] Fri, 23 November 2007 12:16 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,
you can call RWT.getResourceManager().register() to make your resources
available from outside. Pass "resource/foo.tar" as parameter to load the
file via http://localhost:9999/resource/foo.tar.

Hope this helps,
Stefan.


lizzz schrieb:
> I implement a file upload/download system use RAP. It's user interface
> development is so easy. but i don't konw how can i registry my files.
> for example,I have a file projectroot/resource/foo.tar, the "resource"
> is a Folder, foo.tar is a tar file.when try to download the file
> use"http://localhost:9999/resource/foo.tar" or
> "http://localhost:9999/25/resource/foo.tar"(25 is the bundle Id),i get this
> HTTP ERROR: 404
>
> ProxyServlet: /resource/foo.tar
>
> RequestURI=/resource/foo.tar
>
> Powered by Jetty://
>
> anybody help me ,plz. Thanks
>
Previous Topic:listener
Next Topic:Contextual menu on a custom widget
Goto Forum:
  


Current Time: Fri Apr 26 20:24:52 GMT 2024

Powered by FUDForum. Page generated in 0.03445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top