• 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

getting servlet file not available

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Friends

The login is jsp file. When submit button clicked a servlet is called and it should be redirect according to the parameter passed from the login page. i use tomcat 6.0 server.
if value is correct it should open another page otherwise it remain in the same page(login).

We found the following while executing:

The requested resource (/PTS/servlet/login) is not available.

We having the jsp and servlets in separate folders. like
Locations of the files:

JSP : PTS/Login.jsp
method : post
action : /PTS/servlet/login

SERVLET : PTS/web-inf/classes/login.class


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
The request URL must match the url-pattern of the servlet mapping of the servlet in question in the web.xml.
 
reply
    Bookmark Topic Watch Topic
  • New Topic