473,378 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

problem in mentioning servlet name in web.xml

Hi,

I am using eclipse IDE. I created a dynamic web project, under that I created a HTML page in which I mentioned my servlet logical name as
Expand|Select|Wrap|Line Numbers
  1.  <form action = "SelectCoffee.do"> 
and then I created a servlet class under the same project and named it as "CoffeeSelect". In the web.xml file, I mentioned

Expand|Select|Wrap|Line Numbers
  1. <servlet>
  2.    <servlet-name>Ch3 Coffee</servlet-name>
  3.    <servlet-class>CoffeeSelect</servlet-class>
  4. </servlet>
  5.  
  6. <servlet-mapping>
  7.   <servlet-name>Ch3 Coffee</servlet-name>
  8.   <url-pattern>/SelectCoffee.do</url-pattern>
  9. </servlet-mapping>
  10.  
When I am running my html page (I called it form.html), it displays a drop down menu from where user can select one item and hit on the submit button. Once, the user hits the button, request object should be sent to the servlet. But, it shows the following error message

HTTP Status 404 - /Chapter_3/CoffeeSelect

type Status report

message /Chapter_3/CoffeeSelect

description The requested resource (/Chapter_3/CoffeeSelect) is not available.


I understood that it is not able to find the file but I am not able to fix it.

Somebody please help me in solving this problem.

Thanks,
KiranJyothi
Mar 21 '11 #1
0 1620

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Veverita | last post by:
Hi there I'm hoping that someone can help me with a question I have about javascript syntax. I got an html page that uploads an image and some text field to a database. What I'd like to do...
7
by: CharlesEF | last post by:
Hi All, I have run into another problem that is eating my lunch. Should be simple but I am having one heck of a time. Please look at this SELECT statement: SELECT FROM States WHERE ] =...
1
by: asianet | last post by:
I have to make a servlet for controlling all other servlets. The browser should show only one url. eg: http://www.ourdomain.com/ControllerServlet what I have to do for this? please advice me......
5
by: Frank Borell | last post by:
I'm having a problem retrieving the ShortName from a file that was written by a MAC and only from a Windows 2003 server. I realize the file has a space after it, but I can retrieve the short...
3
by: Nathan Bloomfield | last post by:
I am having difficulty with an attempt at setting a recordset based on a string. The code -- Set rsSource = CurrentDb.OpenRecordset("'" & strSourceTable & "'", dbOpenTable) -- results in the...
14
by: Altman | last post by:
Ok I have a control that is inherited from another class. In the child I put msgbox(me.name) in the load event. What always pops up is the name of the parent class and not the name of the...
0
by: Mannie | last post by:
Hi! In my project I need to use one library in two versions (the old and the new one), so I decided giving them a strong name key. Then I reattached references to those libraries to my project....
3
by: judge82 | last post by:
I getting error msg that line six is not supported by -source 1.4, try -source 1.5 to enable annotations. I am new to servlet and I need help asap thanks in advanceimport java.io.*; import...
6
by: tshad | last post by:
I am getting the following messages from my compile code: PageInit.cs(43,71): error CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly...
1
by: Torben Laursen | last post by:
I have a simple WCF project that is giving me problems. The solution does not response if I change the name of a datacontract. It compiles fine but when I generate the proxy file the change in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.