Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in HF page 81..

 
Praveena Gupta
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,
in Head First book page 81,after Making SelectBeer.java and compiling it,i got SelectBeer.class file.
copied it for the deployment as specified to the path-
/Beer-v1/WEB-INF/classes/com/example/web directory.

but when i do selection on the form.html for a beew selection, after that it doesent work.
what can be the problem?
when i click the select button, it pops up a window asking file Find,Save or Cancel..
if i click "Find" it opens a page where it says "
File Type: Unknown
Description: Windows does not recognize this file type"

what can be the problem.i have done every step properly..

thanks,
Praveena
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Check how you set your contents-type inside servlet
response.setContentType("text/html")
 
Rick Roberts
Ranch Hand
Posts: 59
Hibernate Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is your servlet container (tomcat) running?
is your deployment descripter (web.xml) set up correctly?
 
Wingchan Tan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check your web.xml?
Dont forget any "/" .
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!