Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: TimeServlet3 fails w/404 when using servlet-mapping


Message #1 by dmkarr@e... on 16 May 2001 11:07:41 -0700
After experimenting with the vanilla TimeServlet3, I added the first servlet
mapping ("/Time").  If my initial URL uses the mapping, it brings up the
initial display, but when I submit the query, I get a 404 for the resource
"/Time3".  It appears that subsequent submissions just append the new action to
the current servlet path, according to the original URL, not what it's mapped
to.

If I then add an ADDITIONAL servlet-mapping for the URL "/Time3", then when I
go to the initial page with "http://localhost/ch03/Time", then submit, it works
correctly.

If I don't use the servlet-mapping for the original URL, then it also works
fine.

-- 
===================================================================
David M. Karr          ; Best Consulting
dmkarr@e...   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


  Return to Index