Thanks,
Other solution. In the wiceket code : for a file in \\myserver\TestResults\A\B\image_timestamp.png. transform it in http://mysserver:8080/testresults/A/B/image_timestamp.png<https://outlook.live.com/owa/%5C%5Cmyserver%5CTestResults%5CA%5CB%5Cimage_timestamp.png.> Add this hyperling in your Wicket page. see http://stackoverflow.com/questions/9434964/tomcat-mapping-context-via-server-xml or http://stackoverflow.com/questions/1812244/simplest-way-to-serve-static-data-from-outside-the-application-server-in-a-java). The idea is to use tomcat as a file server. So in my apache-tomcat/conf/localhost forlder (I create the localhost folder), I add a file : Access_to_testresults.xml <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> <Context deployOnStartup="true" docBase="C:\TestResults<https://outlook.live.com/owa/%5C%5Cmyserver%5CTestResults%5CA%5CB%5Cimage_timestamp.png.>\" path="/testresults" reloadable="false"> <Manager pathname=""/> </Context> Then I can access to all hyperlinks and read image, text, ... without any Java code. Thanks. ________________________________ De : Martin Grigorov <martin.grigo...@gmail.com> Envoyé : jeudi 6 octobre 2016 02:40 À : users@wicket.apache.org Objet : Re: hyperlink to a file on the server but ouside of the wicket war ? Hi, See ResourceLink component. On Oct 5, 2016 6:18 PM, "andre seame" <andre1...@hotmail.fr> wrote: > Hello, > > > I have a windows server with TOMCAT and a wicket application in > d:\apache-tomcat\webapps\mywcketapplication.war > > > On this server, I have a shared disk where someone has put > \\myserver\TestResults\image_timestamp.png<file://\\myserver\TestResults\image_timestamp.png>. > > > The wicket application can access to the file throught : > d:/TestRsults/image_timestamp.png > > > I would like to add in a wicket page a hyperlink to image_timestamp.png. > My first (very stupid) idea was to set <a > href="d:/TestRsults/image_timestamp.png" > ... > > > Questions are : > > * What is the hyperlink ? > * Must I configure tomcat to access to d:\result ? > * Must I configure the wicket application to access to the file ? > > > Thanks, > > PHL. >