Also, I plead You to explain me in text of course( not by source code ), if You can step by step how to change following:
localhost:8080/MyApp/MyPage1/1 to just localhost:8080/MyApp/1 How to delete MyPage1 context from link url and to leave only localhost:8080/MyApp/1