ContentsQuick Start"Hello World!" - as a web page
Previous: Getting the environment set up | Next: "Hello World!" - as a PDF document

"Hello World!" - as a web page

The first thing most of us like to do when learning a new programming tool or environment is to write that most-commonly reinvented wheel: "Hello World"

This what JBuilder3's servlet wizard gave me -> See the source 1

I removed lines 17 - 23 and inserted new stuff -> See the source2

To clarify things, here it is without the fluff that JBuilder3 put in (we'll use this version to comment on the what's been done) -> See the source 3

When you compile this third iteration, you should be able to look at it with your browser, and it should look like -> this

Now, here's what we've done (referring to source 3):

As you can see, one of the uses of the servlet utilities is to encapsulate HTML, so that you can think in Java instead of jumping back and forth between the two languages. While this may seem interesting and useful for small applications, I urge you to check out Enhydra XMLC for a much better approach.


ContentsQuick Start"Hello World!" - as a web page
Previous: Getting the environment set up | Next: "Hello World!" - as a PDF document