Results 1 to 7 of 7
  1. #1
    sameerk is offline Member
    Join Date
    Aug 2010
    Posts
    19
    Rep Power
    0

    Default 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:

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    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?

  3. #3
    sameerk is offline Member
    Join Date
    Aug 2010
    Posts
    19
    Rep Power
    0

    Default

    ya i saw log but there is no error

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    Debug?

    There will be something somewhere.

  5. #5
    sameerk is offline Member
    Join Date
    Aug 2010
    Posts
    19
    Rep Power
    0

    Default

    but on the other machine the code works fine.
    is it machine problem or what?

  6. #6
    sameerk is offline Member
    Join Date
    Aug 2010
    Posts
    19
    Rep Power
    0

    Default

    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?

  7. #7
    sameerk is offline Member
    Join Date
    Aug 2010
    Posts
    19
    Rep Power
    0

    Smile

    hey
    my problem is solved problem is in .jar file
    thanx for help

Similar Threads

  1. Calling Servlet on link click event
    By KumbhaniMehul in forum Java Servlet
    Replies: 2
    Last Post: 04-06-2010, 09:13 PM
  2. calling up servlet from Html
    By mosto in forum Java Servlet
    Replies: 7
    Last Post: 10-18-2009, 03:38 PM
  3. Servlet calling a new html page within it.
    By ServletEst in forum Java Servlet
    Replies: 6
    Last Post: 09-27-2009, 02:16 AM
  4. Servlet calling JSP page
    By gapper in forum Java Servlet
    Replies: 1
    Last Post: 01-15-2008, 04:00 PM
  5. MIDLet calling Servlet
    By ravian in forum Java Servlet
    Replies: 1
    Last Post: 12-06-2007, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •