Q:

URL mapping in Java Web Applications

In a simple Java web application can we do JSP and HTML URL mapping in somewhat similar fashion to Spring's InternalResourceViewResolver, where we use prefix and suffix to map URLs.
Mapping should be done as following:-
mysite.com/home ==> /index.html
mysite.com/help ==> /help.html
mysite.com/view/form ==> /jsp/form.jsp
mysite.com/view/user ==> /jsp/user.jsp

I know that we can do JSP mapping in web.xml like:-
<servlet>
    <servlet-name>formpage</servlet-name>
    <jsp-file>/jsp/form.jsp</jsp-file>
</servlet>
<servlet-mapping>
    <servlet-name>formpage</servlet-name>
    <url-pattern>/view/form</url-pattern>
</servlet-mapping>

But there is no prefix and suffix property here.
How can we generalize jsp and html mapping like above?
Edit:
Spring example:
<bean id="viewResolver"
    class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/jsp/" />
    <property name="suffix" value=".jsp" />
</bean>

A:

Here is what I did, A lot of Answers are quite good, but I need a pure Java Web Application solution and here is what I did:-
I created a Servlet Filter and the doFilter method is as follows:-
public void doFilter(ServletRequest request, ServletResponse response,
        FilterChain chain) throws IOException, ServletException {

    String uri = ((HttpServletRequest) request).getRequestURI();
    String path = uri.replace(
            ((HttpServletRequest) request).getContextPath(), "");

    if (path.startsWith("/view/")) {
        String rd = path.replace("/view/", "/jsp/") + ".jsp";
        request.getRequestDispatcher(rd).forward(request, response);
    } else {
        chain.doFilter(request, response);
    }
}

