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: [email protected]
For additional commands, e-mail: [email protected]