for some reason the user throws an m at the end or messes with the url :http://127.0.0.1:8080/ecommerce/store/department/15/category/1/m
Currently this throws a java exception and error_java.jsp is displayed, i really need error_404.jsp to be displayed because its just a bad url and page not found.
I would only want error_java.jsp to be displayed in the case that and actual java error happened in my code.
Is this possible to do with Frontman? Even if i had to alter source code?
This change will not be made. As it is, you can capture the exception and do anything you want with it, including returning a 404. It is not Front Man's job to decide what the response code should be -- that level of control remains in the hands of the web devo.
Of course, if you disagree, the source code is yours to change as you see fit.
Where would I catch that exception? as it is now it does not make it to the execute method and not to any part of the code i have written.
Id rather not change the source code, i would like to do it the correct way, im just not sure how.