File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How to test a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to test a servlet" Watch "How to test a servlet" New topic
Author

How to test a servlet

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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....


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
james edwin
Ranch Hand

Joined: Nov 22, 2001
Posts: 393
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 ]

Regards,
James
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to test a servlet