Results 1 to 2 of 2
  1. #1
    java_hyd is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default invoking servlet from jsp form submit using web.xml

    Hi All,

    Im trying to invoke a servlet from jsp form action.

    My JSP - Form action="com/abc/def.servlet.class"
    /home/id/123/xyz/jsp

    My Servlet class - /WEB-INF/classes/com/abc/def/servlet.class

    web.xml

    <servlet>
    <servlet-name>servlet</servlet-name>
    <servlet-class>servlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>servlet</servlet-name>
    <url-pattern>com/abc/def/servlet.class</url-pattern>
    </servlet-mapping>


    Please help me out to invoke servlet class from my jsp

    Thanks in Advance,
    Java_hyd

  2. #2
    java_hyd is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default

    Can body give some suggestions on this...

    im unable to invoke servlet from my jsp from....

    giving 404 error.

    Pls help me out.

    Thanks,

Similar Threads

  1. Replies: 0
    Last Post: 10-31-2009, 10:24 AM
  2. Replies: 10
    Last Post: 08-12-2009, 05:02 PM
  3. how can i link html+servlet+xml to form servlet
    By balachandarr in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2009, 05:06 PM
  4. Invoking Servlet from SWT application
    By wolve634 in forum SWT / JFace
    Replies: 1
    Last Post: 03-30-2009, 12:35 PM
  5. How to use one form to submit data to 2 tables on mysql
    By kwesiaryee in forum New To Java
    Replies: 2
    Last Post: 10-10-2008, 02:41 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
  •