I was assuming you use maven 'src/main/java'
and 'src/main/webapp' see http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html If you don't use maven you have to choose the corresponding directory in your build / IDE environment... Am 27.07.2011 um 15:08 schrieb eugenebalt: > Guys, I tried creating new folders under src/, naming them main/ and then > webapp/ under main/, with img and css subdirectories, but that didn't work > either, I don't know why. It was supposed to find it automatically. > > But anyway, I don't want to reorganize my project structure. It's an > existing NetBeans project and I have dependencies in it, e.g. web.xml. > > So my question, how can I get Wicket to display my static resources > referenced in HTML based on my *existing* structure, which I described in > the first post? What is the Java code for that? > > I need to be able to reference img src="[img]" for example. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698424.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