| Author |
how to call a servlet from a Java Script function
|
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
Hi, can you please tell me how to call a servlet from JavaScript function.. thanks indu [ August 31, 2008: Message edited by: Bear Bibeault ]
|
thanks,
indu
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56163
|
|
As a GET or a POST? For the former, load the URL of the servlet using: for a POST, cause a form with a method of "post" to be submitted. Or use Ajax. [ August 31, 2008: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
JS function can able to call doGet() of Servlet, but not calling doPost() . I added <form method="post">. Thanks
|
 |
 |
|
|
subject: how to call a servlet from a Java Script function
|
|
|