Hi Carfield, You don't need to do anything special to get this to work.
Example: In the package 'com.my.company': MyPanel.java, MyPanel.html, MyPanel.css and in the sub-package 'com.my.company.img': image.jpg. In MyPanel.html: <wicket:head> <wicket:link> <link rel="stylesheet" type="text/css" href="MyPanel.css"/> </wicket:link> </wicket:head> In MyPanel.css: .image { background-image: url('img/image.jpg'); } See also http://cwiki.apache.org/WICKET/including-css-resources.html Erik. Carfield Yim schreef: > I would like to put all my image and CSS to classpath so that when I > update my web application, I just need to replace the jar. > > I am now thinking having logic at onBeginRequest() to check the URL > and see if the request path have resource exist in classpath. If it > exist, open outputstream of response and deliver to client. > > Just wonder if there any better way to do this task > > -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user