• 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 in HF page 81..

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Check how you set your contents-type inside servlet
response.setContentType("text/html")
 
Ranch Hand
Posts: 59
Hibernate Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is your servlet container (tomcat) running?
is your deployment descripter (web.xml) set up correctly?
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check your web.xml?
Dont forget any "/" .
reply
    Bookmark Topic Watch Topic
  • New Topic