This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Security Constraints in web.xml  RSS feed

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
we can provide security constraints and roles in web.xml.
I have application which have lot of users login to the application and I store user information in my database.
then how can I set the role of the user.
I mean my user information is in database and security and role information in web.xml how can I synch both of them.
Hope its clear.
Please reply.

Thanks in advance.
 
Victor Hugo M Machado
Greenhorn
Posts: 22
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe it help
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your quick response.
I have gone through the link.
Does the concept of realms, users and groups come with servers like JBOSS and TOMCAT?
 
Rakesh Chaudhary
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Its a Global concept Chets and I think it applies to the Servers mentioned by You

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohh then its ok.
Thanks for your reply. Got good knowledge.
 
Victor Hugo M Machado
Greenhorn
Posts: 22
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chets patel wrote: Got good knowledge.


that is important! good luck
 
Nick White Ro
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although the concept is global and applies to almost any application server, the implementation is not standard, but proprietary.
Personally, I prefer application managed security through a dedicated library for this, such as Spring Security.
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nick
Thanks for your reply.
Can I combine Spring Security and Sturts 2?
I dont want to use spring MVC. replacing Spring MVC with Struts 2.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!