Results 1 to 7 of 7
Thread: calling servlet from jsp
- 09-17-2010, 12:46 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
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:
- 09-17-2010, 01:33 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
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?
- 09-17-2010, 02:41 PM #3
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
ya i saw log but there is no error
- 09-17-2010, 02:50 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Debug?
There will be something somewhere.
- 09-20-2010, 06:40 AM #5
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
but on the other machine the code works fine.
is it machine problem or what?
- 09-20-2010, 07:24 AM #6
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
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?
- 09-21-2010, 07:04 AM #7
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
Similar Threads
-
Calling Servlet on link click event
By KumbhaniMehul in forum Java ServletReplies: 2Last Post: 04-06-2010, 09:13 PM -
calling up servlet from Html
By mosto in forum Java ServletReplies: 7Last Post: 10-18-2009, 03:38 PM -
Servlet calling a new html page within it.
By ServletEst in forum Java ServletReplies: 6Last Post: 09-27-2009, 02:16 AM -
Servlet calling JSP page
By gapper in forum Java ServletReplies: 1Last Post: 01-15-2008, 04:00 PM -
MIDLet calling Servlet
By ravian in forum Java ServletReplies: 1Last Post: 12-06-2007, 12:48 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks