Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in @ServletSecurity

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomcat SSL is enabled and working fine and there is a role named admin is present
My Servlet Code

My html file(to call POST request)

When I request form.html and click the Go> button then it redirect to https login page ,then I enter valid username and password without displaying "Hello Admin from doPost" it shows me "HTTP Status 405 - HTTP method GET is not supported by this URL".

I have requested in POST but it says GET is not supported. Please clear my doubt .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic