473,398 Members | 2,165 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,398 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 1622

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.