-------Original Message-------
   > From: [EMAIL PROTECTED], [EMAIL PROTECTED]
   > Subject: Re: Re: Re: Re: newbie create new table
   > Sent: 14 Mar 2003 19:43:18
   >
   >
   >
   >  I managed to create the necessary java files for some new .vm files that I 
created.  However,
   >  I'm not seeing any table entries in my database when I try to insert a record 
from
   >  the page created by my InsertTask.vm template.  In fact the InsertTask.vm 
creates the
   >  result page using the IndexTask.vm template I created, but the entries are all
   >  of the form "$entry.StartDate" instead of the actual value.  I take this to mean 
the
   >  value is null.  Here are my vm files.  How do I debug these files?
   >
   >  sorry for the tags.  My webhost is stripping off the html tags for some reason.
   >
   >  ----InsertTask.vm-----
   >  $page.setTitle("InsertTask")
   >
   >
   >  /head>
   >
   >  body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" 
marginheight="0">
   >  form method="post" action="$link.setPage("IndexTask.vm").setAction("SQL")">
   >  div align="left">
   >  table bgcolor="#ffffff" cellpadding="5">
   >  tr>
   >  #formCell ("Description" "description" "")
   >  /tr>
   >  tr>
   >  #formCell ("StartDate" "startdate" "")
   >  /tr>
   >  tr>
   >  #formCell ("EndDate" "enddate" "")
   >  /tr>
   >  tr>
   >  #formCell ("StatusId" "statusid" "")
   >  /tr>
   >  tr>
   >  #formCell ("Implementor" "implementor" "")
   >  /tr>
   >  /table>
   >  input type="submit" name="eventSubmit_doInsert" value="Insert"/>
   >  /div>
   >  /form>
   >  ----------------------
   >
   >  ----IndexTask.vm-----
   >  $page.setTitle("IndexTask")
   >  $page.setBgColor("#ffffff")
   >
   >  #set ( $headings = ["Description", "StartDate", "EndDate", "StatusId", 
"Implementor", " "] )
   >
   >  #if ($entries)
   >  table>
   >  tr>
   >  td>
   >  table cellspacing="1" cellpadding="1">
   >  tr>
   >  #foreach ($heading in $headings)
   >  #headerCell ($heading)
   >  #end
   >  /tr>
   >
   >  #foreach ($entry in $entries)
   >  tr>
   >  #entryCell ($entry.Description)
   >  #entryCell ($entry.StartDate)
   >  #entryCell ($entry.EndDate)
   >  #entryCell ($entry.StatusId)
   >  #entryCell ($entry.Implementor)
   >  td>Edit
   >  td> Add Task
   >  /tr>
   >  #end
   >  /table>
   >  /td>
   >  /tr>
   >  /table>
   >  #end
   >
   >  ---------------------
   >
   >  >  -------Original Message-------
   >  >  > From: [EMAIL PROTECTED]> Subject: Re: Re: newbie create new table>  > Sent: 
14 Mar 2003 16:59:35
   >  >  >
   >  >  >
   >  >  >  Hi Michael!
   >  >  >
   >  >  >  I want to be sure you get this, so I'm sending it to directly as well as
   >  >  >  to the list.
   >  >  >
   >  >  >  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
   >  >  >  /webapps/[YourApp]/templates/app/screens/.
   >  >  >
   >  >  >  Then, create a Java class for each screen. They go in
   >  >  >  /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
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >
   >  >  >  >    -------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-------
   >  >  >  >
   >  >  >  >
   >  >  >
   >  >  >
   >  >  -------Original Message-------
   >  >
   >  -------Original Message-------
   >
   >
   -------Original Message-------


Reply via email to