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
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
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