Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to invoke servlet from an application  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!