Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a Servlet (Urgent)

 
Monika Sharma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can I call a servlet from a javascript function?
Please reply ASAP.
Thanx..
Monika
 
ali farid
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you will have to call the submit function of the form through javascript and then that form will call the servlet.
document.myForm.submit()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic