> ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getServletPath()
Doesn't he need getContextPath? Or you can do WebApplication#getServletContext(). I don't think you typically need it though. If you let a component print out "subdir/foo.jpg" for the source attribute, it will pick that up relatively to your web app context. Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user