Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test a servlet

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am doing a J2ME program where a MIDlet is sending a serach query and the servlet takes it and get the data from the databse and post it back to the MIDlet. I have written the servlet, but don't know how to test whether this is working or not. Now the problem is where to publish my servlet. Can I try it out in my local mechine, if can how. Or else is there a place where I can publish my servlet. A free hosting place I mean. Thanks in advance....
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run the servlet you need an web container (like tomcat) or any other J2EE application server like websphere,jboss,weblogic...etc we have so many in the market.

Tomcat is free.You can try that and get it from here and then you invoke your servlet through web browser.

Regards,

James
[ August 26, 2004: Message edited by: james edwin ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic