Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18564
| From | Fredrik Jonson <fredrik@jonson.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Problem with tomcat 6.0.32 |
| Date | 2012-09-06 04:36 +0000 |
| Message-ID | <slrnk4ga2v.adm.fredrik@scout.jonson.org> (permalink) |
| References | <5f8ee108-bcec-4f96-ac86-d49e548b204a@googlegroups.com> |
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: > > <servlet-mapping> > <servlet-name>login</servlet-name> > <url-pattern>/CheckLogin/* </url-pattern> > </servlet-mapping> > > I'm calling this from a JSP form element: > <FORM name="f1" ACTION="/CheckLogin" METHOD=POST onsubmit='return checkall()'> 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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem with tomcat 6.0.32 ruds <rudranee@gmail.com> - 2012-09-04 23:50 -0700
Re: Problem with tomcat 6.0.32 markspace <-@.> - 2012-09-05 09:03 -0700
Re: Problem with tomcat 6.0.32 ruds <rudranee@gmail.com> - 2012-09-05 20:36 -0700
Re: Problem with tomcat 6.0.32 markspace <-@.> - 2012-09-05 22:27 -0700
Re: Problem with tomcat 6.0.32 Fredrik Jonson <fredrik@jonson.org> - 2012-09-06 04:36 +0000
Re: Problem with tomcat 6.0.32 Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 22:33 -0400
Re: Problem with tomcat 6.0.32 markspace <-@.> - 2012-09-08 20:22 -0700
Re: Problem with tomcat 6.0.32 Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 23:25 -0400
Re: Problem with tomcat 6.0.32 Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 23:30 -0400
Re: Problem with tomcat 6.0.32 markspace <-@.> - 2012-09-08 20:36 -0700
Re: Problem with tomcat 6.0.32 Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 23:51 -0400
jsessionId (was: Re: Problem with tomcat 6.0.32) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-09-09 09:35 +0000
Re: jsessionId Arne Vajhøj <arne@vajhoej.dk> - 2012-09-09 09:39 -0400
csiph-web