Tim Funk wrote:
You cannot add a doPut() to your servlet and excpect it to work. But in
your JSP, you can do this:
// The following worked fine with tomcat 5.0.28 (plus unrelated patches)
if("PUT".equals(request.getMethod()) {
/*put code*/
} else {
/*not put code*/
}
JSP's declare Servlet.service() as final. Then they call _jspService()
(which is created during JSP compilation). So doYYY() is never called.
-Tim
Ken Johanson wrote:
Serendipity! I guess the couple time I'd done this before made me overly
confident that it should work the way I *remembered* doing it (which was
implement doPut *and* add the dispatch code which I'm not doing now).
Of course you are right - if the JSP overrides service (even indirectly
as final), than super cant dispatch it to the per-method handler.
Thanks!!!
ps _ I think above you may have meant "You *can* add a doPut() to your
servlet and expect it to work" (only if service isn't overridden or is
but calls super.service()).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]