We want to deploy our application on Tomcat, WebLogic, WebSphere and JBoss. Our application's web.xml needs to contain a mapping to the default servlet.
For Tomcat this servlet is named "default", so our mapping would appear as:
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/js/calendar/flexcal.html</url-pattern>
</servlet-mapping>
But on other platforms it changes (i.e. WebLogic is "FileServlet").
Is there a way to define a conditional mapping that will change depending on what is available? If not how should we approach this issue?
Thanks!