Foo.success=foo.jsp
Foo.error=foo-error.jsp
Now in your web application you might want to have two different views for HTML and WML clients. Simply put a file called foo.jsp that outputs HTML in a folder called (for simplicities sake) "html" and another foo.jsp that outputs WML in a folder called "wml". Then all you have to do to access the html version is use the address