Results 1 to 4 of 4
- 12-02-2012, 05:34 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 1
- Rep Power
- 0
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....
- 12-03-2012, 06:58 AM #2
Re: Servlet with button onclick event in a Single jsp
Removed from a staff-only section.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-03-2012, 07:02 AM #3
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 697
- Rep Power
- 6
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.
Website: Learn Java by Examples
- 12-15-2012, 08:04 AM #4
Member
- Join Date
- Dec 2012
- Location
- china
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
TABLEDATA---onclick--> SERVLET with TABLEDATA id/name/etc.
By cajax in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 12-17-2011, 12:16 PM -
How can I to add a mouse event to a button that it'll edit itself and other button
By mad72584 in forum New To JavaReplies: 7Last Post: 08-06-2011, 03:39 AM -
onclick event in jsp
By happy in forum Java ServletReplies: 4Last Post: 06-30-2011, 09:22 AM -
control two actions for two diff dropdown boxs with a single submit button using jsp.
By vrk in forum Advanced JavaReplies: 1Last Post: 04-15-2009, 07:47 AM -
How to validate JTextFields components in JTreetable in single button click.
By selvin_raj in forum AWT / SwingReplies: 1Last Post: 07-03-2008, 01:05 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks