GeeCON Prague 2014*
The moose likes Servlets and the fly likes still running the old servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "still running the old servlet" Watch "still running the old servlet" New topic
Author

still running the old servlet

Rahul Shilpakar
Ranch Hand

Joined: Aug 29, 2006
Posts: 132
Hello,

I have run a servlet named X and it is successful.

Now I am excuting Servlet Y but still it is showing me the Output of X.

I don't how it is?

but when i clean and built project it is not successfully builting the project.


Perform for today. Adapt for tomorrow.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

Rahul, you may need to TellTheDetails. Post the problems with error messages/exceptions which you get so that others can easily identify the issue. For example how you run this *Y* servlet, how it's mapped etc...


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Rahul Shilpakar
Ranch Hand

Joined: Aug 29, 2006
Posts: 132
Follwing is my servlet which i executed 1st



----------------------------------------------------------------------------------------------

And now I executed the following servlet



NOW

after executing DataInServlet servlet it is giving me the output of MyServlet1

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

You are still not giving us anything to work with. How are these individual servlets mapped? How are you invoking them? Are you restarting the web app between changes?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rahul Shilpakar
Ranch Hand

Joined: Aug 29, 2006
Posts: 132
Bear Bibeault wrote:You are still not giving us anything to work with. How are these individual servlets mapped? How are you invoking them? Are you restarting the web app between changes?


How are you invoking them ? Means

I am using "Run File" which i get after right click in the code of servlet.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

Sorry, without seeing at least your web.xml it's hard to assume anything...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Is this within an IDE?
Karl San Gabriel
Greenhorn

Joined: May 19, 2010
Posts: 4

Please provide us the content of your web.xml file.
su tam
Greenhorn

Joined: Apr 24, 2011
Posts: 1

Hi - Study your Deployment descriptor carefully. Problem, most probably, lies there.
 
GeeCON Prague 2014
 
subject: still running the old servlet