This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "security" Watch "security" New topic
Author

security

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Hi there!

I was going through the security chapter and wanted to see how it works . But i am not sure what files it requires,and it's location and how to invoke it. So um.. can some one give me a rough idea on this, so i can work on it ....

Thanks!


The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The setup depends on the servlet container you're using; the instructions for Tomcat are at http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Sorry for the long delay in response...

Does that mean I have to configure/create a Realm to test any part of Security?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

Nabila Mohammad wrote:...Does that mean I have to configure/create a Realm to test any part of Security?

Yes, a Realm is where you store the user's login credentials (username/password/roles etc..). Easiest way would be to use a memory realm, edit the tomcat-users.xml (for Tomcat) as mentioned in the link provided by Ulf.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: security
 
It's not a secret anymore!