These worked, using the QuickStart jetty launcher. Using Wicket HEAD, though, as it's what I've got to hand...
-- CssDemo.java --- package wicket.quickstart; import wicket.PageParameters; import wicket.markup.html.WebPage; public class CssDemo extends WebPage { public CssDemo(final PageParameters parameters) { super(); } } ------------------- -- CssDemo.html --- <html xmlns:wicket="http://wicket.sourceforge.net/"> <head> <title>Wicket Test - CSS Demo</title> <wicket:link> <link rel="stylesheet" type="text/css" href="CssDemo.css"/> </wicket:link> </head> <body> <h1>Css Demo</h1> <p>This is a demo page for Wicket.</p> </body> </html> ------------------- -- CssDemo.css ---- H1 { color: blue } ------------------- -- web.xml -------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Wicket QuickStart</display-name> <servlet> <servlet-name>quickstart</servlet-name> <servlet-class>wicket.protocol.http.WicketServlet</servlet-class> <init-param> <param-name>applicationClassName</param-name> <param-value>wicket.quickstart.QuickStart</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>quickstart</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> ------------------- /Gwyn On 01/09/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > That code is fine, as it shouldn't render a page, but just stream the resoure. > > Did you put '/*' in your web.xml (not just '*') ? > > Eelco > > > On 9/1/05, Jim McBeath <[EMAIL PROTECTED]> wrote: > > I tried adding the "*" to my web.xml file, that didn't make any > > difference. I ran a debugger on the wicket code and came across ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user