This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to call servlet from javascript without using form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to call servlet from javascript without using form" Watch "how to call servlet from javascript without using form" New topic
Author

how to call servlet from javascript without using form

krunal prajapati
Greenhorn

Joined: Apr 18, 2011
Posts: 19

hello,

I want to call servlet from javascript and my index.jsp is



I tried both javascript method
and my servlet class is mainDAO.java is

in doGet method



then how can I call servlet without using form ans submit button


thanks,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

It's not clear what your issue is. Please be more explicit.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: how to call servlet from javascript without using form
 
Similar Threads
Href with onClick
Java script functions in Servlet Output
Checking file size before uploading
JSP code not working properly
not able to call javascript function