I have a website www.simbiz2010.com when I try to press the login button on the leftcol it shows 404 Not Found- The resource requested could not be found on this server!
Please help as I don't know what is going on.. i have the web.xml allright I think so I don't really know what I'm missing.
Please TellTheDetails. It's hard to know what's going on without any details, tell us what are the components involved, mappings, how you invoke the servlet etc..
website address is www.simbiz2010.com
The web is loading fine.. but when I click on the Login button it is said www.simbiz2010.com/ControllerServlet 404 NOT Found
I have public_html\WEB-INF\classes\ControllerServlet.class
But the jsp is loading fine.. so does this mean the server does not support the servlet ?
is the jsp and servlet are two different things ? ( if jsp is loading fine than the servlet should also be working ?)
John Koe wrote:It is UNIX apache with tomcat 5.5 installed.
But the jsp is loading fine.. so does this mean the server does not support the servlet ?
As you are using Tomcat 5.5, It supports Servlet 2.4/JSP 2.0.
is the jsp and servlet are two different things ?
Well, JSP is actually converted in to a servlet eventually. You will find lots of information on that on our FAQ's section as well as on the web.
Now where exactly you have put your web app in the server (that should be under the "webapp" directory of Tomcat) ?
Mourouganandame Arunachalam
Ranch Hand
Joined: Oct 29, 2008
Posts: 395
posted
0
based on your web.xml, you should keep your ControllerServlet class under the package controller (ie., ..\WEB-INF\classes\controller)
Mourougan
Open Source leads to Open Mind
azhar jodatti
Greenhorn
Joined: Oct 18, 2009
Posts: 12
posted
0
hey john...
you are getting this problem becuase your directory structure is not following the spec....
you kept your class direclty in classes folder under web-inf... and in DD you are telling that your class is in controller package... if you have used package in your class then just keep your .class file in package name controller and your problem wil get solved...