• Post Reply Bookmark Topic Watch Topic
  • New Topic

Login JSP  RSS feed

 
Greg Belyea
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where should i go to find out more about, how to implememnt login features into my Struts>JSP Application. I need to design tables that take into account Users>Roles>Permissions etc... But i am not sure how to retrieve that information and use it properly in displaying pages where certain links won't show up depending on your permissions... Can someone tell me where to look for info??
Thanks a bunch
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well this is a great place to ask questions about what's confusing you. What have you come up with so far?
Also, such topics have been discussed in the past. Searching through such forums as Servlets, JSP, HTML/Javascript and perhaps even JDBC might get you on the right road.
 
Ben Dover
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Greg,
J2EE has an excellent security infrastructure, allowing you to declare in your web.xml descriptor which servlets / methods / JSP's require security based on roles (as declared in the server.xml descriptor in tomcat). You can use different kinds of authentication where the server prompts for login and determines access accordingly. (ie simple, form-based, etc).
See the J2EE tutorial online to learn the details of how this is achieved. Or a good J2EE book. New Riders "Java for the Web" is great.
 
Greg Belyea
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

Thanks, what i have done so far is design the tables for, Roles, Users, Permissions, and the Permission Role cross reference table. It would be excellent to be able to configure it so that only certain links show up on the menu pages for certain permissions. I was sure there was a better way than retrieving a profile bean and putting if statements around all the Menu choices. That seemed to primitive. I think i mentioned above that i am using struts, JSP's and SQL Server. I would like to do this the cleanest way possible.
Where can i locate that online tutorial? I will look for the book you specified tomorrow. I am working on it today so maybe i can find some stuff on the Sun Website. I will definitely be back to ask more questions though. Have not been to this site since i was taking my developers cert like 3 years ago, forgot all about it. Great Site
Thanks
Greg B
 
Ben Dover
Ranch Hand
Posts: 91
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!