blog archives

january 2009
february 2009
march 2009
april 2009
may 2009
june 2009
july 2009
august 2009
september 2009
october 2009
november 2009
december 2009

rss feeds

my blog

Simple Java servlet getInputStream() Jul 01, 2009

If you need a simple proof of concept to display the body of a HTTP Post from a Java Servlet you can use the following code:

BufferedReader in = new BufferedReader(new InputStreamReader(req.getInputStream()));
while (in.ready()) {
  System.out.println(in.readLine());
}
This will print out the body of a request to your standard output. Please note that this is _NOT_ the best way to do this. This is just a quick way to get at a HTTPRequest object's body tag.. Java can be complex but it doesn't need to be.

Django -- from Java to Python in hours. Jun 15, 2009

I assure you it is possible. I just wrote this blogging software and front end integration in just over a week's time. I had never even seen/written python before last week. I decided as soon as I got home from work and all weekend I was going to learn, write, and deploy a django app. It is production ready with a web stack of python/postgres/django/apache/lighttpd. Unfortunately that doesn't make me a python professional but it does prove Django can really get you on your way.

Well the admin site is up! Jun 12, 2009

I got the site up and running late last night and needed to christen the code with a blog post.

Ryan Higdon says...
Well the comment system is up! -- Jun 29, 2009 12:44 p.m.