I've been reading quite a bit about doPost(), doGet() and service() and REST but I've come to a question I wasn't able to find an answer to. This question may be more on a subjective note as it is related to URL aesthetics rather than convention.
The thing is when organising the structure of a project, sometimes if it's small enough I'd rather have one single servlet with the different methods for the WebSite asigned by a "GET" parameter say
http://localhost/Servlet?option=METHOD
However, this brings up a conflict when trying to separate "GET" from "POST". Now what I'm asking here is if having a "nice" (subjective opinion) URL means having it with that format, would implement service() method be the best way to use?
I'm open to suggestions as is using for example
http://localhost/Servlet/Option
But how would I go about implementing such format also being able to pass get Parameters as
http://localhost/Servlet/Option?param=value