Lance JSP Stuff Bill Theseus

Theseus Example

See Example App
Download Example - 3/7/2001

Back to Theseus

Well, here is our try at a simple example program. We did this in a couple of hours so its nothing fancy.

It should show how to use forms to submit a form to an action class method, as well as href tags to call an action class method. Its a simple address book kept in memory. You can add addresses, list them, and remove them (from the list page). Its a VERY small "cart" type of system. We did not use any XSL in this example, but it would be easy enough to do. If anyone would like us to redo this example using XSL instead, let us know.

A few things to remind you about. First, when you unzip this into a dir, it is a complete J2EE application in that it has a META-INF/application.xml that specifies the basic Enterprise Application stuff (it has one web module in it). In the www dir from the root there is web-inf/lib and web-inf/classes. If you are using a Servlet 2.2 or later engine (such as Orion, Resin, JRun 3, WebLogic 6, Apache Jakarta 3) you need to compile the .java files into the web-inf/classes dir. We have not included the theseus.jar in the web-inf/lib dir. You'll have to add xerces.jar and saxon.jar there (or possibly in the jdk/etc or app-server/lib dirs) as we don't think we can distribute them, and it would make the download much larger. We left out theseus.jar for the same reason. Make sure you get the very latest theseus.jar, we just fixed a bug we found while developing this example application.

We also included web.xml so you can see a complete web.xml on how to map the theseus.jar, and theseus-config.xml which has a single action in it and shows you how to use jsp resources as well as a little documentation on how to use other actions as resources.

We did not include the compiled class files. You'll have to compile the example to see it in action. As a reminder, we nor anyone associated with Brainpolis can be held responsible for anything this example does. Examine it and use it at your own risk. This is just a disclaimer.

To participate in discussion of Theseus, send email to theseus-user-subscribe@yahoogroups.com.

Thanks again for all those interested, following and providing feedback. We do appreciate it.

the following is a "hit counter" only

Click Here!