
Hi All,
I have to develop Java Web Application using Struts. Can someone please tell me how to code for administration login .i.e when admin login he should have full access whereas others login they should have limited access.
How to do code for the same in proper manner? My main concern is that every time I have to use if(role= admin) {} else {} but I think this is not the proper way because the same code will be repeated again and again for eg if(admin){code ... 1 to 10} else {1 to 5}. Here code 1 to 5 is repeating.
I am newbie. Request you people to provide some assistance.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.