I don't see how I'd be able to do that sort of path? I need to provide the full path for the reference to be found, since it's an external resource. Obviously, I get a NullPointerException if I just type in what you show in your example.
I must be missing something. Either way, this could be a huge security problem as I store other "assets" in these folders that definitely do *not* want users discovering or gaining access to. Thanks again... Eelco Hillenius wrote: > >> By reusing the same code that I have been using to serve images inside of >> the application, I can use to get a reference to the images w/ a full >> URL, >> like so: >> >> http://myurl/MyApp/home/resources/wicket.Application/imageResource?file=C:\\assets\\newsletter\\my_photo.jpg >> >> ...which I was able to discover because of this line in my init() in my >> app >> class: >> >> getSharedResources().add("imageResource", new ImageResource()); >> >> Eelco's post got me thinking of that and it works. Any reason I >> shouldn't >> do it this way? > > No, that's pretty much what I meant. The only thing still is that you > might want to use logical paths (e.g. relative to a root dir) so that > you'll have > > http://myurl/MyApp/home/resources/wicket.Application/imageResource?file=assets/newsletter/my_photo.jpg > instead of exposing where on your server those images are exactly > located. > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Displaying-images-remotely---HTML-email-tf4535313.html#a12946158 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
