• 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

Just another beginner's HTTP 404

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a directory problem.
Following Marty Hall's Core Servlets Vol 1 Chapter 4.

1. I create an HTML form C:\apache-tomcat-6.0.18\webapps\ROOT\ThreeParametersForm.html
containing <form action="/servlet/coreservlets.GetParameters" method="get">
and display it OK using http://localhost/ThreeParametersForm.html.

2. Enter data and submit and the servlet (package coreservlets ;)
C:\apache-tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\coreservlets\GetParameters.class
Also displays OK.

But I don't want to use the ROOT directory , I want to use GBJSP :

C:\apache-tomcat-6.0.18\webapps\GBJSP\ThreeParametersForm.html
http://localhost/GBJSP/ThreeParametersForm.html.
<form action="/GBJSP/coreservlets.GetParameters" method="get">
Displays OK

And servlet :
C:\apache-tomcat-6.0.18\webapps\GBJSP\WEB-INF\classes\coreservlets\GetParameters.class
Submit data and HTTP status 404 - /GBJSP/coreservlets.getParameters
Requested resource is not available.
Thank you
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Change the below line


as below and try.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic