We recently made a J2EE project in our class which required 58 different webpages. But a lot of them were redundant in my opinion. How? Let me give you a simple example. After the "login" page, where both the admin and a common user logs in, one is redirected to a common page, where there are several buttons. Some buttons are common for a user and the admin, but an admin can see some extra buttons in that very same page. So what we did- we made first the common part of the page and then made another page copy-pasting the code for the common page and then added some extra buttons for admins privileges. So after confirming a user, we redirected him to the common page, again if the user is confirmed as the admin, we redirected him to the extra buttons added page.
I personally feel this approach is redundant. We should have made a single page for admin view and then should have made arrangements so that if the user is confirmed to be an admin, he can see everything, but if he is confirmed to be a user, the extra buttons would hide automatically. Is htere a way to do so in HTML pages? Along with HTML, we used a little CSS and Javascript (Alert etc.)