File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in @ServletSecurity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in @ServletSecurity" Watch "Doubt in @ServletSecurity" New topic

Doubt in @ServletSecurity

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

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 .
I agree. Here's the link:
subject: Doubt in @ServletSecurity
It's not a secret anymore!