This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The default template for a new servlet treats GET and POST as the same method. This is contrary to good and RESTful web practice. Steps to reproduce: * Create new servlet Expected results * doGet and doPost are separate methods Actual results * doGet and doPost both call "processRequest", and their implementations are folded away from the user
Not a defect. The default servlet template is just intended to provide a simple servlet that always does something meaningful. If you want GET and POST to do different things, you can always edit the respective method. We could provide a new template (or enhance the default one) to allow you to choose whether GET and POST do the same, but I don't think that would have a high priority.
Ok, but to clarify: GET and POST doing the same thing is a bug. This template is equivalent to one that produces a java bean using a common implementation for get_foo() and set_foo().
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss