As per my understanding, "protected" modifier of doGet() means that a client has to be in the same package (or a child - through inheritance) to access doGet(). So how will the invoking JSP or the Container access it?
Hope my question makes sense.
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
Pedro Kowalski wrote:I think that the container calls the Servlet.service(-) method (which is public). It then calls the HttpServlet.service(-) method which is protected and it then call doXxx(-) method.
So, the public access for Servlet.service(-) method is enough for the container to operate on servlet.
Got it! Didn't think of the public service(...) method between the container & the doXXX(...) methods!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: protected modifier of doGet(), doPost() etc.