Have you read the docs on the Turbine site? Go to the Turbine 2.2 site.
http://jakarta.apache.org/turbine/turbine-2.2.0/index.html
You *really* need to read, or at least scan for now, all the pages under Essentials and Documentation on the left.
Also, read
http://jakarta.apache.org/turbine/tdk/tdk-howto.html
Once you're familiar with the basics, you could create a few screens to display
1. a list of PROJECT items - ProjectList.vm
2. a list of TASK items - TaskList.vm
3. a single PROJECT - ProjectDetail.vm
4. a single TASK - TaskDetail.vm
Each of these Velocity templates (.vm files) go in <tdk>/webapps/[YourApp]/templates/app/screens/.
Then, create a Java class for each screen. They go in <tdk>/webapps/[YourApp]/WEB-INF/src/java/[package]/modules/screens/. Use the same name as the vm file, except for ".vm".
In each screen Java class, you'll put a List or object into the context. Then, in the vm file, you can display the data.
I really hope this helps. Let me know.
Eric
Michael C. Starkie wrote:
Sorry, I'll try again.
Here is the database I want to create. What do I need to do in order to build the front end. Just some general topics would be fine to point me in the right direction.
I created the table but I don't understand the syntax of the .vm files and I don't know the relationship between the schema changes and the java files that are generated and which need modification and which do not.
Thanks, Mike
<database>
<table name="PROJECT"> <column name="PROJECT_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/> <column name="TITLE" size="255" type="VARCHAR"/> <column name="DESCRIPTION" size="255" type="VARCHAR"/> </table>
<table name="TASK"> <column name="TASK_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/> <column name="PROJECT_ID" required="true" type="INTEGER"/> <column name="DESCRIPTION" size="255" type="VARCHAR"/> <column name="START_DATE" type="TIMESTAMP"/> <column name="END_DATE" required="false" type="TIMESTAMP"/> <column name="STATUS_ID" type="INTEGER"/> <column name="IMPLEMENTER" size="50" type="VARCHAR"/>
<foreign-key foreignTable="PROJECT"> <reference local="PROJECT_ID" foreign="PROJECT_ID"/> </foreign-key> </table>
</database>
-------Original Message------- > From: [EMAIL PROTECTED] > Subject: Re: Re: newbie create new table > Sent: 14 Mar 2003 12:30:26 > > > "Michael C. Starkie" [EMAIL PROTECTED]> writes: > > >--_b2ed085c350627538371f931b1fbf8d27 > >Content-Type: text/plain; > > >Content-Transfer-Encoding: base64 > > Hm, > > I'd like to help you but please use text/plain. > > Regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH > [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ > > Java, perl, Solaris, Linux, xSP Consulting, Web Services > freelance consultant -- Jakarta Turbine Development -- hero for hire > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -------Original Message-------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
