@Anonymous,
this does not sound like a question that has anything todo with this article. Simple write a servlet as you are used to, and add code to execute SQL statements. You can send it whatever statement you like so you should be able to generate a statement that creates a table using some servlet parameter as name.