开发者

customize tomcat's user authentication pop up

I would like to customize the dialog window that pops up asking users to authenticate. I am using tomcat basic authentication; currently when the user hits a protected page they get a dialog box that says

A username and password are being requested by http://localhost:8080. The site says: "Authentication required"

I 开发者_如何转开发am pretty sure that I read somewhere that it is possible to change this message. Does anybody know how or where?


Tomcat is using the realm name you can configure in web.xml

  <login-config>
    <auth-method> BASIC </auth-method>
    <realm-name> Example Basic Authentication </realm-name>
  </login-config>

See, for example http://oreilly.com/java/archive/tomcat-tips.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜