Forum Moderators: phranque
Welcome to WebmasterWorld!
You can use mod_rewrite's RewriteCond directive checking %{REQUEST_FILENAME} for file-exists (see -f flag), and then *internally rewrite* to the jsp script if the test fails. Your implementation should not redirect or return a 404 response until your are sure that there is no content associated with the requested URL.
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim