Re: How to Reference a /WebContent File from Wicket

2012-03-08 Thread eugenebalt
I got it, it's Application.class.getResourceAsStream(file.pdf); (assuming file.pdf is directly under /WebContent). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Reference-a-WebContent-File-from-Wicket-tp4454190p4457546.html Sent from the Users forum mailing

How to Reference a /WebContent File from Wicket

2012-03-07 Thread eugenebalt
to the shared resource. But the file isn't found. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Reference-a-WebContent-File-from-Wicket-tp4454190p4454190.html Sent from the Users forum mailing list archive at Nabble.com

Re: How to Reference a /WebContent File from Wicket

2012-03-07 Thread Igor Vaynberg
File f = new File(WebContent/test.pdf);  // test.pdf directly under WebContent before adding the bytes of f to the shared resource. But the file isn't found. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Reference-a-WebContent-File-from-Wicket