thx, i know container context config, but i 'm so stupid that i don't know 
<param-name>filterPath</param-name>  can be empty .  it cannot work when i try 
/* ,* .

thx a lot, it work well now.:-)

> Message: 2
> Date: Fri, 16 Mar 2007 15:38:47 +0100
> From: "Korbinian Bachl" <[EMAIL PROTECTED]>
> Subject: Re: [Wicket-user] how to config the wicket 2.0 application
> toaccessable by domain name directorly?
> To: <wicket-user@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 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

Reply via email to