This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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 "/" .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic