• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to invoke servlet from an application

 
ameem sami
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
Is there any way that i can invoke a servlet through java application.
what i have to do is that when ever the user sends a message it should be created ad file on the server.
Thanks
 
Rahul Rathore
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, use URL/URLConnection to invoke servlet- using url pointing to the servlet. For eg. see maha anna's program in this thread: http://www.javaranch.com/ubb/Forum7/HTML/002910.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!