web.xml servlet and JSP priority



I am writing a MVC framework (like laravel for PHP) in java. but the difficulty I have is the priority in web.xml.


Say I have these mappings:



/statics/test.jsp -> goes to JSP file -> auto generated by gradle build script
/favicon.ico -> goes to the favicon picture
/* -> goes to my MVC application with route stuff


I want it in that exact order, how do I do it, the order of the mapping seem to not matter: everything always goes to the /* mapping. Why is this, an how can I bypass this? Is there a way to specifically define priority?


No comments:

Post a Comment