Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Problem with tomcat 6.0.32 Date: Wed, 05 Sep 2012 22:27:21 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <5f8ee108-bcec-4f96-ac86-d49e548b204a@googlegroups.com> <589d18a1-e640-4226-9b75-3f0973bb7f62@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 6 Sep 2012 05:27:22 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="7096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rhKnxYJBoQ+R+xGUdNiw3pUC/o5F6HO4=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <589d18a1-e640-4226-9b75-3f0973bb7f62@googlegroups.com> Cancel-Lock: sha1:JvGeN7RgG9j0zBryV6d0y1oeMio= Xref: csiph.com comp.lang.java.programmer:18565 On 9/5/2012 8:36 PM, ruds wrote: > the URL for my webapp is: http://localhost:8080/FIR/login.jsp > the URL which it gets directed to should be: http://localhost:8080/FIR/CheckLogin > but it is going at: http://localhost:8080/CheckLogin > Yup, c.f. Fredrik's reply: the "action" from the form needs to either be /FIR/CheckLogin, or it needs to be a relative URL -- "CheckLogin" with no slash in front. Your missing the context path, in other words, which is easy for newbies to trip on.