you could define a servlet-filter in web.xml like this
<filter>
<filter-name>incompleteUrlFilter</filter-name>
<filter-class>com.mywebsite.IncompleteUrlFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>incompleteUrlFilter</filter-name>
<url-pattern>/abc/*</url-pattern>
</filter-mapping>
and the filter class would look like this
package com.mywebsite;
public class IncompleteUrlFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
if( ((HttpServletRequest)req).getPathInfo() == null ){ // nothing after /abc/ !
req.getRequestDispatcher("/abc/xyz.html").forward(req, resp); // forward to xyz.html
} else {
chain.doFilter(req, resp); // else continue as usual
}
}
}