How do you add 'shopping cart' type menus in a website? Is there a program you can add to Dreamweaver?

Would it just be a form with Java?