You must install example1 first and get it to work. Example2 will override example1.
It's an example of guest book with ability to change setting ( 256/16 color) depends of user preferences. We will switch tag @color@ for local substitutor to 16 or 256. And we have img16.gif and img256.gif ( Assuming same pictures but different color schema).
1. You need to copy all classes files over example1 class files.
2. Copy all txt files over example1 txt files.
3. Copy 2 gif files to /image folder of your WWW server.( You can chose your own folder but then change config.txt ).
4. Change config.txt so "body" pointed to correct imagepath. Must be like: body = body background="/images/img@color@.jpg"
5. Restart your WWW server. ( You need to restart servlet).
Test servlet http://youwebserver/servlet/guestbook/viewguest
You can also test http://youwebserver/servlet/guestbook/test This page shows all controls supported by template package. When you click submit button. They are read themselves and outputs back to browser. It shows how easy you can redisplay page with entered information in case of error.
If you have any problem or question please submit your question on http://template.da.ru