• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic