Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Fredrik Jonson Newsgroups: comp.lang.java.programmer Subject: Re: Problem with tomcat 6.0.32 Date: 6 Sep 2012 04:36:42 GMT Lines: 22 Message-ID: References: <5f8ee108-bcec-4f96-ac86-d49e548b204a@googlegroups.com> X-Trace: individual.net ytparE1jXyxWLh/Vic9L7QPmRilR3Ko6t51ibFS7c3Qqp9D/6zKyqEH4hHIWqCwA4= Cancel-Lock: sha1:LNTN3/USkVyR/8/Xhi8MQlZ/tYo= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.java.programmer:18564 In <5f8ee108-bcec-4f96-ac86-d49e548b204a@googlegroups.com> ruds wrote: > I'm am deploying an application having JSP's and few servlets. My servlet is > not getting invoked after calling from JSP. My web.xml entry is: > > > login > /CheckLogin/* > > > I'm calling this from a JSP form element: >
You need to prepend the servlet context path to the form action url. In html, when you specify a relative url that starts with a / it is interpered as being relative to the server root. So /foo is interpreted as http://example.com/foo. The servlet mapping in web.xml does normally not start from the server root, but from the servlet context path. -- Fredrik Jonson