In my homework, i had to build a site, about e-learning. Basic framework is: login, then have several functions and have various link of note and course material, like this:
click here to see I use a so called Model View Controller method: I need to write a
servlet as the single point of contact. This controller servlet will check if the user has logged in. If so, it will forward to the main menu page. Otherwise, it will forward to the login page. So all the functions like Student Info, Chat room, after logined will point to
http://localhost/servlet/container which check the session first, then redirect to related functions' Servlet (student info,chat room,etc), but my PROBLEM is that: as you see my pic above, if I use these method for my course material on the right, it will be very bulky, because all the courses material will link to the container first, then redirect to another Servlet to resolve the REAL link in Web-inf, (to prevent viewing without login). Do I present my question clearly? If not, I will explain further. Please kindly suggest what way I can solve, thanks!!