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.
Hi, I want to avoid the basic authentication dialog box appearing when i access a particular part of my web server. I would like the servlet to do the basic authentication by posting a username and password.The servlet will already have the necessary username and password. Is this possible , and if so are there any example source code for this?? Any help would be greatly appreciated, thanks Carlos
There is an excellant example in the examples for Jason Hunter's book "Java Servlet Programming (2nd Edition)" The example is for an Applet to communicate back to a servlet requiring Basic Authentication but can work with your servlet or an application. It uses a class he created called "HttpMessage" and "Base64Encode" The examples are at http://examples.oreilly.com/jservlet2/ If you don't have a copy of his book, I recommend it! Ajith gave it 10 Horseshoes! ------------------ I Hope This Helps Carl Trusiak, SCJP2