This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet BASIC authentication not working (web.xml attached)

Gurumurthy Ramamurthy
Ranch Hand
Posts: 273
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. I have enabled administrator security in websphere. When I give the admin page, it asks me username/password, it works well.
2. I have written a HelloWorld servlet (deployed in websphere app server) and given the BASIC authentication mechanism in web.xml as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>

< !DOCTYPE web-app<br /> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"<br /> "">

Example servlets








If I give the URL to access this servlet, the window security box appears but when I give the username/password, it says "You are not authorized to view this page".
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic