How do I run a servlet from command-line mode?

Alex Chaffee

Once you install your servlet inside a servlet container like Tomcat, you can fetch the results of the servlet by using a command-line tool like wget or curl (or write your own HTTP client -- it's not very difficult).

You can also use a tool like ServletUnit (part of HTTPUnit) that's a "bare-bones" on-the-spot servlet runner. Be warned, though; it doesn't implement all the features.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact