SuperMoonster
Programmer
Hello everyone,
I created this topic to hear some of your opinions. I'm developing a web application and I must now implement user login and user rights. Users may or may not have the right to Delete, Insert, Update, or Print. So I'm thinking about controlling this by just not showing them the option (jstl will have to help me a little here).
But I was wondering the best way to do this 2 things... and I thought of some:
For the login:
1. I was told that I could implement it using a filter in tomcat, is it right? Can I do it even if I have my own cypher method?
2. I could only write a class and have a login method. But how would I make sure that the user was logged, in every jsp?
For the rights (which will be stored in a table):
1. I could have a method that checks the table for the rights every time a page opens... and then, gives me the result. And then I would show or not show the option.
2. I could implement aspects, though I'm not sure they could be well used.
Well, this are just ideas. I'd like your opinions now, please, doesn't matter if they are different from mine.
Thanks.
I created this topic to hear some of your opinions. I'm developing a web application and I must now implement user login and user rights. Users may or may not have the right to Delete, Insert, Update, or Print. So I'm thinking about controlling this by just not showing them the option (jstl will have to help me a little here).
But I was wondering the best way to do this 2 things... and I thought of some:
For the login:
1. I was told that I could implement it using a filter in tomcat, is it right? Can I do it even if I have my own cypher method?
2. I could only write a class and have a login method. But how would I make sure that the user was logged, in every jsp?
For the rights (which will be stored in a table):
1. I could have a method that checks the table for the rights every time a page opens... and then, gives me the result. And then I would show or not show the option.
2. I could implement aspects, though I'm not sure they could be well used.
Well, this are just ideas. I'd like your opinions now, please, doesn't matter if they are different from mine.
Thanks.