Results 1 to 2 of 2
  1. #1
    jksathya is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default how to pass values from jsp to servlet

    i used 3 that i used 3 links for edit,view,delete operation.based on link clicked,the corresponding button only send to servlet in order to enable the operation.
    in index.html i wrote like that
    <a href="newuser.html?val=newuser" "> create new user</a><br>
    <a href="deleteuser.html?val=deleteuser "> Delete user</a><br>
    <a href="edit.html?val=edit "> Edit user</a><br>
    in servlet,
    String value=request.getParameter("val");
    i received val is null.if any one help me .how to pass values in order to do particualr operation(edit,view,delete)

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Rep Power


    According to that href you are going to a html pages on those links.
    Have you mapped the servlet to those pages?

Similar Threads

  1. Pass Values into 2D Array?
    By noble in forum New To Java
    Replies: 7
    Last Post: 11-09-2010, 08:30 AM
  2. Cant pass ByteArray from Servlet to Midlet
    By Anahcra in forum CLDC and MIDP
    Replies: 0
    Last Post: 10-28-2010, 10:03 AM
  3. How to pass value from servlet to midlet?
    By sharmaj2me in forum CLDC and MIDP
    Replies: 1
    Last Post: 12-05-2008, 04:52 PM
  4. how to pass a List from a servlet to javascript..
    By hussainzim in forum Java Servlet
    Replies: 2
    Last Post: 09-09-2008, 01:17 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