This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes whats wrong in my DD ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
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: 688

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!
Visit my blog http://inaved-momin.blogspot.com/
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: 688

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
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575


pay attention to the packages chain . is that start with classes ?
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: whats wrong in my DD ?
 
Similar Threads
requested resource() not found for simple HTML?
Different Versions Of Eclipse. What's the Difference???
HFS: Problems with running SelectBeer.do servlet
Error on my first aplication
Tomcat container not working