Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JSP container cannot find my servlets

  Asked By: Hamish    Date: Apr 03    Category: Java    Views: 1144
  

I'm working on some project,using Tomcat as my web server,and I've
faced a problem. My JSP container cannot find my servlets(the ones
I've writen for doing control on my pages!).My IDE knows them but not
the server.
I thought at first that the problem comes from my classpath,but now
I'm losing that idea,cause I've tested all the possibilities.
Can anyone help me in urgent, cause I really need help.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Geb Chalthoum     Answered On: Apr 03

please note these:
at first step you should try this in this url ./WEB-INF/web.xml,
for example :


<servlet>
<servlet-name>Logout Servlet</servlet-name>
<servlet-class>com.basamadco.opxi.manager.servlet.LogoutServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Logout Servlet</servlet-name>
<url-pattern>/logoutServlet</url-pattern>
</servlet-mapping>

and when you define your servlet in web.xml your webserver like tomcat, see it in it;s own container.

 
Didn't find what you were looking for? Find more on JSP container cannot find my servlets Or get search suggestion and latest updates.




Tagged: