To my knowledge, the only way to code a dynamic website is through Java/PHP. There is also software available that allows you do create most basic dynamic websites visually, without having to hardcode anything. One of the most popular ones I know of is called Dreamweaver.