-
calling servlet from jsp
i have following web.xml file
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>AdditionalIndepHeadsExpServlet</servlet-name>
<servlet-class>com.digicon.caproject.IndependentHeadsEditEx p</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AdditionalIndepHeadsExpServlet</servlet-name>
<url-pattern>/AdditionalIndepHeadsExp.do</url-pattern>
</servlet-mapping>
and i m calling com.digicon.caproject.IndependentHeadsEditExp class using
AdditionalIndepHeadsExp.do but it is not working.
it is not giving any error and also not displaying servlet page also.
pls help me :confused:
-
I take it you mean that you have a link somewhere on a page that when clicked (or whatever) is resulting in nothing happening?
Have you debugged the servlet to see if it's getting there?
Have you looked at the logs for tomcat (or whatever you're using) to see if anything is going on on the server?
-
ya i saw log but there is no error
-
Debug?
There will be something somewhere.
-
but on the other machine the code works fine.
is it machine problem or what?
-
does this loading problem because of following error
Sep 20, 2010 11:33:35 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\apache-tomcat-5.5.28\webapps\EN-Vision\WEB-INF\lib\servlet-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
:confused:
if it is then how to solve this problem?
-
hey
my problem is solved problem is in .jar file
thanx for help