• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

The requested resource is not available.

 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is my Login.jsp


this is my web.xml

this is my Servlet



when I click on login I get,

HTTP Status 404 - /validateServlet

--------------------------------------------------------------------------------

type Status report

message /validateServlet

description The requested resource (/validateServlet) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28


Please help me.
Thanks in advance.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either the relative URL is plain wrong, or the url-pattern of the servlet mapping is plain wrong.

What is the absolute (full http://) URL with which you can call this servlet independently? What is the absolute URL of the current page with the form pointing to the servlet? Once you have the answer on both, you could easily extract the relative URL to the servlet from the absolute URL of the page. Use this relative URL in the page's form then.
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic