• 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

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

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic