error message now works
TODO: filename must be parsed in jsp