This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 60800
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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