File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes whats wrong in my DD ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "whats wrong in my DD ?" Watch "whats wrong in my DD ?" New topic
Author

whats wrong in my DD ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 543

i have a simple servlet code that take the combo box selected value from a html form and display it in the same page
i have compiled the servlet's .java code and put it into

and my dd looks like

class file name is BeerSelect

so when i click on submit button on that html page action triggers and container looks for servlet file , but shows me a message resources not found 404 error


The Only way to learn is ...........do!
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

As long as I remember servlet-name shouldn't contain spaces. Try removing the space between Ch3 Beer in serlvet-name tag.
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 543

Nitin Surana wrote:As long as I remember servlet-name shouldn't contain spaces. Try removing the space between Ch3 Beer in serlvet-name tag.

no, that is also not working, but surelly i would like to make a comment on head first servlets and jsp book
the examples which they have given are not precise and accurate
i guess they are correct for unix but not for windows , just started and found example errors in 1st chap
Seetharaman Venkatasamy
Bartender

Joined: Jan 28, 2008
Posts: 4503


pay attention to the packages chain . is that start with classes ?


Not everything that counts can be counted, and not everything that can be counted counts-Albert Einstein
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3334

naved momin wrote:
i guess they are correct for unix but not for windows

How it is possible for a Java web application to be workable on Unix but not on MS Windows?
 
 
subject: whats wrong in my DD ?
 
Threads others viewed
Different Versions Of Eclipse. What's the Difference???
HFS: Problems with running SelectBeer.do servlet
Tomcat container not working
Error on my first aplication
requested resource() not found for simple HTML?
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture