Re: image from outside web application directory
Hi, it's not wicket related but if you are using tomcat as application server you can use the aliases attribute of the context ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html) which allows you to map an external (to your web app) dir to an url (es c:/images on filesystem as /images in the url) ciao, Giovanni Il 05/07/12 00.49, lang ha scritto: I need to show images from c:/pictures on my website. I searched and searched and there should be something on old.nabble but that link is giving null pointer results. Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Giovanni Cuccu Responsabile area sviluppo - CUP 2000 Spa Via del Borgo di S. Pietro, 90/c - 40126 Bologna e-mail: giovanni.cuccu _at_ cup2000.it
Re: image from outside web application directory
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650392.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
The blog article I gave you url to explains exactly this use case. Mount a resource that reads the image name from the request's path/parameters, loads it from external store and delivers it back to the client. On Thu, Jul 5, 2012 at 3:15 PM, lang delan...@telfort.nl wrote: Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650392.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650393.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
This is what I've done. https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html Scott On Thu, Jul 5, 2012 at 6:18 AM, lang delan...@telfort.nl wrote: Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650393.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Hi, Read this: http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Thu, Jul 5, 2012 at 12:49 AM, lang delan...@telfort.nl wrote: I need to show images from c:/pictures on my website. I searched and searched and there should be something on old.nabble but that link is giving null pointer results. Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Hi Riyad n Ernesto, Thx a lot for your help. I've found the solution among those search results. The class name is FileResource. Quite simple, yet I wonder why the class isn't included in Wicket, bcoz it's a common need. Many thanks for the clues... GBU On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote: Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+imageand these: http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=Your answer is in there somewhere. The thread recently (3 weeks ago?) about it was pretty long and someone pasted a complete impl that they were using that folks said worked great. I just don't recall the class name otherwise I'd search for it :) -R On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote: Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
GW, Good pt... at the least it should probably be in the Wiki. I think it's just an issue of one of the leads not having time to go through it's impl and figure out if it should go in or not? I'm sure there are probably a few different ways to write such a component. -R On Thu, Mar 4, 2010 at 10:55 AM, Gw not4spamm...@gmail.com wrote: Hi Riyad n Ernesto, Thx a lot for your help. I've found the solution among those search results. The class name is FileResource. Quite simple, yet I wonder why the class isn't included in Wicket, bcoz it's a common need. Many thanks for the clues... GBU On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote: Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image and these: http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= Your answer is in there somewhere. The thread recently (3 weeks ago?) about it was pretty long and someone pasted a complete impl that they were using that folks said worked great. I just don't recall the class name otherwise I'd search for it :) -R On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote: Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
I believe so, Riyad. Anyway, you guys did a great job at Wicket. 2 thumbs up. Thx a lot, bro... Good day.. On 3/5/10, Riyad Kalla rka...@gmail.com wrote: GW, Good pt... at the least it should probably be in the Wiki. I think it's just an issue of one of the leads not having time to go through it's impl and figure out if it should go in or not? I'm sure there are probably a few different ways to write such a component. -R On Thu, Mar 4, 2010 at 10:55 AM, Gw not4spamm...@gmail.com wrote: Hi Riyad n Ernesto, Thx a lot for your help. I've found the solution among those search results. The class name is FileResource. Quite simple, yet I wonder why the class isn't included in Wicket, bcoz it's a common need. Many thanks for the clues... GBU On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote: Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image and these: http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= Your answer is in there somewhere. The thread recently (3 weeks ago?) about it was pretty long and someone pasted a complete impl that they were using that folks said worked great. I just don't recall the class name otherwise I'd search for it :) -R On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote: Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Hi Mike, search the list this have been answered many time before. Best, Ernesto On Tue, Mar 2, 2010 at 12:46 PM, Gw not4spamm...@gmail.com wrote: Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+imageand these: http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate= http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=Your answer is in there somewhere. The thread recently (3 weeks ago?) about it was pretty long and someone pasted a complete impl that they were using that folks said worked great. I just don't recall the class name otherwise I'd search for it :) -R On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote: Hi all, I'd like to know how to display an image which is located outside web application directory (eg: C:\images) . Many thanks in advance for your assists. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org