try with /* mapping and see if it works

you are not running this on websphere are you?

-igor

On Mon, Mar 2, 2009 at 2:12 PM, mallet <ryanlahue...@gmail.com> wrote:
>
> Hello,
>
> I am using 1.3 and a servlet for Wicket in my web.xml, which I've pasted
> below.  I am trying to change to using a Filter instead, which I also pasted
> below, but I get a weird behavior -- my WebApp.getHomePage() is served every
> time I click on a link.  The links work fine when I use the servlet, and I
> followed the migration guide (
> http://cwiki.apache.org/WICKET/migrate-13.html#Migrate-1.3-FilterinsteadofaServlet
> ), so I am not sure why I am getting this behavior.  Any ideas?
>
> ---------------------------
> <!-- This works -->
> <servlet>
>  <servlet-name>MyWebApp</servlet-name>
>
> <servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
>    <init-param>
>      <param-name>applicationClassName</param-name>
>      <param-value>my.WebApp</param-value>
>    </init-param>
>  <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
>  <servlet-name>MyWebApp</servlet-name>
>  <url-pattern>/app/*</url-pattern>
> </servlet-mapping>
>
> ---------------------------
> <!-- This does not work -->
> <filter>
>  <filter-name>MyWebApp</filter-name>
>  <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
>    <init-param>
>      <param-name>applicationClassName</param-name>
>      <param-value>my.WebApp</param-value>
>    </init-param>
> </filter>
>
> <filter-mapping>
>  <filter-name>MyWebApp</filter-name>
>  <url-pattern>/app/*</url-pattern>
> </filter-mapping>
> --
> View this message in context: 
> http://www.nabble.com/Migration-from-servlet-to-filter-always-serves-WebApplication.getHomePage%28%29-when-I-click-on-links-tp22298026p22298026.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to