Possible to configure Web.xml to listen to specific file(s)?

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
jbart08
Posts: 11
Joined: Tue Sep 13, 2011 9:04 am

Possible to configure Web.xml to listen to specific file(s)?

Postby jbart08 » Fri Sep 16, 2011 8:50 am

Right now the default setting for our website configuration is to listen to all site requests in order to pull any tracking querystring values (TrackingFilter) listed below. Our mobile listener also listens to all incoming requests currently, and for reasons unknown this is causing server errors on HTML files within sub-pages of the site. What I'd like to be able to do is configure the device listener to ONLY listen on our homepage or homepages (home.jsp, homeA.jsp, & homeB.jsp) Is it possible to configure the listener to only process those pages? Or is this something that would need to be done directly in code (in DeviceServlet)?

Code: Select all

<web-app>
<display-name>www.XXXXXXXXXXX.edu</display-name>
<context-param>
<param-name>wurfl</param-name>
<param-value>/WEB-INF/wurfl-latest.zip</param-value>
</context-param>
<context-param>
<param-name>wurflPatch</param-name>
<param-value>/WEB-INF/wurfl_patch.xml</param-value>
</context-param>
<filter>
<filter-name>TrackingFilter</filter-name>
<filter-class>edu.XXXXXXXXXXX.web.filter.TrackingFilter</filter-class>
<init-param>
<param-name>domain</param-name>
<param-value>.XXXXXXXXXXX.edu</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>TrackingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>
net.sourceforge.wurfl.core.web.WURFLServletContextListener
</listener-class>
</listener>
<servlet>
<servlet-name>DeviceServlet</servlet-name>
<display-name>DeviceServlet</display-name>
<description/>
<servlet-class>edu.XXXXXXXXXXX.web.servlets.DeviceServlet</servlet-class>
<init-param>
<param-name>mobileUrl</param-name>
<param-value>http://dev-m.XXXXXXXXXXX.edu/</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>DeviceServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>

luca.passani
Posts: 65
Joined: Thu May 19, 2011 2:49 pm

Re: Possible to configure Web.xml to listen to specific file

Postby luca.passani » Sun Sep 18, 2011 3:43 am

this seems to me like a question about how to configure your AppServer, not WURFL.


Who is online

Users browsing this forum: No registered users and 34 guests