The key here is not wicket - its the webcontainer you use. If you use Tomcat then there is a special ROOT configure directive (or Path - sorry here, but havent had to do with it for long time) wich can be found in the Tomcat-Docs (similar is jetty - just look for "context root" or "context path")
if you use a real appserver e.g: SJAS you really want to go over the EAR or WAR way and define the Context-Path to be / in the container-web.xml (SJAS: sun-web.xml) e.g: <context-root>/</context-root> in the web.xml itself you only need to map it to /* (dont forget the *) e.g: <filter-name>NAME</filter-name> <filter-class>wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationClassName</param-name> <param-value>YOURAPPCLASS</param-value> </init-param> <init-param> <param-name>filterPath</param-name> <param-value/> <filter-mapping> <filter-name>NAME</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> so you then can configure it the way you want: domain.com/context_name/filterpath ^container ^web.xml Regards, Korbinian > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von tooy li(Gmail) > Gesendet: Freitag, 16. März 2007 14:50 > An: wicket-user@lists.sourceforge.net > Betreff: [Wicket-user] how to config the wicket 2.0 > application toaccessable by domain name directorly? > > hi, > > pardon for my poort english first. > > I need deploy the application into web site which can be > acess by domain name. > for example , www.toy.com is refer to my app. but i cannot > know how to config it in 2. 0 since it use filter instead of > servlet. it seems that i have to set the filterPath to > something, so i only can access my app by www.toy.com/myapp . > > -------------------------------------------------------------- > ----------- > 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 > ------------------------------------------------------------------------- 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