I need to design my application for which I need a small help
All the
JSP pages in our application are user specific for e.g. if the user is an administrator then he can modify the details of a user (displayed on details.jsp) but when the user is a normal user then he can only view the details and cannot modify(here also we want to use the same jsp 'details.jsp'), so all the buttons will be disabled and data will be displayed as a plain text rather then textfields..
I know we can achieve this thru 'if and else', but i don't want to use this approach, as this will clutter my jsp,not to mention adding business logic.
Is their other way to achieve this ?
Please help.