Results 1 to 4 of 4
  1. #1
    Rashjohar25 is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Red face Servlet with button onclick event in a Single jsp

    How can i write a code to perform a action with the help of servlet in jsp Page?
    My problem is that i have an jsp Page and in this jsp Page i have created a button.
    I want that On click at this button a servlet start working created into the same page.
    For Example:
    (Add as Friend) Button on Facebook
    That never refresh the page but sends the Request to the user.
    Same thing i want to do but with the help of JSP-Servlet....

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Servlet with button onclick event in a Single jsp

    Removed from a staff-only section.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default Re: Servlet with button onclick event in a Single jsp

    You can use AJAX to create a call to the servlet without refreshing your page.

  4. #4
    wright536 is offline Member
    Join Date
    Dec 2012
    Location
    china
    Posts
    2
    Rep Power
    0

    Default Re: Servlet with button onclick event in a Single jsp

    Re: Servlet with button onclick event in a Single jsp

    I think you can use javascript to do it.

Similar Threads

  1. TABLEDATA---onclick--> SERVLET with TABLEDATA id/name/etc.
    By cajax in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-17-2011, 12:16 PM
  2. Replies: 7
    Last Post: 08-06-2011, 03:39 AM
  3. onclick event in jsp
    By happy in forum Java Servlet
    Replies: 4
    Last Post: 06-30-2011, 09:22 AM
  4. Replies: 1
    Last Post: 04-15-2009, 07:47 AM
  5. Replies: 1
    Last Post: 07-03-2008, 01:05 PM

Tags for this Thread

Posting Permissions

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