Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat 4.1

 
hem kumar
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey folks ..i'm in real trouble in using tomcat 4.1 . Here i want to create a user directory under webapps for wrting all my servlet program. so i created one dorectory under webapps folder with appropriate structure . But when i try to pass some parameters from one html file to another servlet file , i'm getting that dreaded 404 error. can anyone tell me what should i write in my form action field and in html file and what to write in browser so that if i pass some parameter in that html file i will be able to get the processed result from the servlet file.
for example i want to pass a name from the html file and say "helloo mr name ." in the servlet file.
here i'm not able to pass from html to servlet , its saying 404 error. i have both the correct html and servlet file with me...Thank u
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have web.xml file with servlet-mapping?
 
hem kumar
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no i dont have that file. what to write there???
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best is to take some other from tomcat webapps and use it as template. Or look into Servlet spec.
 
hem kumar
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok David thank u
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic