This content has been marked as final. Show 3 replies
yes, basicResource is my own class. It's a catch all for restlet requests that don't match any of the other ones. It just returns String = "My catch all resource"
Because you highlighted it I decided to try and remove it from my Restlet Router. Presto, it now works, the login & hello requests are serviced by my Restlet resources and the MyPage.html requests are served the mypage.html file. This now brings another question. If from my servlet mapping in web.xml all urls are to be handled by restlet "/*", how then does a mypage.html request not get serviced by my restlet? Seems to be just passed through the restlet framework when there is no router to match it? what do you think?
well, i believe the restlet router matches the longest path possible. so, when "/mypage.html" was requested, it matched the "/" path in your router and got handed to your BasicResource (which is why i asked about it). when you removed it, it now matched none of your resources, so there must be some default routing inside restlet to handle it (not entirely sure).