I would like to make a servlet (application deployed on OC4J ) which will allow to enter users logged in domain (Active Directory) without any prompt for login and password. Is it possible to retrive in servlet : user name via getRemoteUser or getUserPrincipal methods without authentication form? Or other way of doing that what I need?
You need to configure what OC4J calls 'Windows Native Authentication', as described in the OC4J Security Guide. It's a bit more work than just calling a particular function - you have to configure Active Directory and OC4J first.