> > I don't have any specific complaints about libservlet. > > I'd probably prefer to see Perl-style method names > > (get_foo(), not getFoo()) and named parameters > > (get_foo(bar => \$baz)), but these are small things. I > > think doGet()/doPost() are kind of silly too, and maybe > > should be dropped in favor of service(). > > silly in what way? do you think that every servlet that's > written should have to implement its own delegation scheme > for http method handlers? or do you have another idea?
I meant that most apps don't care whether they were called with GET or POST, and those that support special methods often want to do custom delegation anyway. I've never wished for separate methods in mod_perl handlers for GET and POST. Bruce Eckel agrees with me in "Thinking in Java", but he's going against common wisdom in the servlet world. What I usually see suggested is to have your doGet() method call doPost(), or have both call some other private method. And that's the part that seems silly - delegating the request to one of two methods that both go to the same place. - Perrin
