• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with running the program code in hfsj pg 30-31

 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone,

i just started reading the hfsj book. but my first application doesnt seem to work. i wrote the code exactly as it is and put them in the folders specified. the Ch1Servlet.java code even compiled. but the web page is not displayed. it gives an error. i have configured tomcat correctly as well. and i checked the errata and found that there were a couple of errors in the code. i corrected them as well but still it doesnt work. can any one who has got this to work please help.


thank you

Dinuka Arseculeratne
 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi again,

the servlet worked this time when i made some changes. in the book it says to put the DD which is named web.xml in the WEB-INF folder. but when i moved the DD to the classes folder and then typed in localhost/ch1/Serv1 it worked. does that mean the book was wrong in this instance? please help


thank you

Dinuka Arseculeratne
 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry eveyone. it was my silly mistake... the book was write. i made a silly mistake in the process... sorry again.

Dinuka Arseculeratnee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic