tbase-cvs Mailing List for TBase
Status: Alpha
Brought to you by:
ron_bakker
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(92) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Ron B. <ron...@us...> - 2006-03-29 21:48:09
|
Update of /cvsroot/tbase/applications/adfundum/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26177/lib Removed Files: jdom.jar informa.jar Log Message: Moved jars to appropriate location --- jdom.jar DELETED --- --- informa.jar DELETED --- |
From: Ron B. <ron...@us...> - 2006-03-29 21:48:04
|
Update of /cvsroot/tbase/applications/adfundum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26177 Modified Files: .classpath Log Message: Moved jars to appropriate location Index: .classpath =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/.classpath,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** .classpath 29 Mar 2006 21:26:26 -0000 1.4 --- .classpath 29 Mar 2006 21:47:56 -0000 1.5 *************** *** 5,10 **** <classpathentry kind="lib" path="lib/servlet-api.jar"/> <classpathentry kind="lib" path="webapp/WEB-INF/lib/tbase-runtime-0.11.jar"/> ! <classpathentry kind="lib" path="lib/informa.jar"/> ! <classpathentry kind="lib" path="lib/jdom.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- 5,10 ---- <classpathentry kind="lib" path="lib/servlet-api.jar"/> <classpathentry kind="lib" path="webapp/WEB-INF/lib/tbase-runtime-0.11.jar"/> ! <classpathentry kind="lib" path="webapp/WEB-INF/lib/informa.jar"/> ! <classpathentry kind="lib" path="webapp/WEB-INF/lib/jdom.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: Ron B. <ron...@us...> - 2006-03-29 21:48:01
|
Update of /cvsroot/tbase/applications/adfundum/webapp/WEB-INF/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26177/webapp/WEB-INF/lib Modified Files: tbase-runtime-0.11.jar Added Files: informa.jar jdom.jar Log Message: Moved jars to appropriate location --- NEW FILE: jdom.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: informa.jar --- (This appears to be a binary file; contents omitted.) Index: tbase-runtime-0.11.jar =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/webapp/WEB-INF/lib/tbase-runtime-0.11.jar,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsr2I549 and /tmp/cvsPTA2RC differ |
From: Ron B. <ron...@us...> - 2006-03-29 21:26:29
|
Update of /cvsroot/tbase/applications/adfundum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12943 Modified Files: .classpath Log Message: Update van classpath Index: .classpath =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/.classpath,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .classpath 29 Mar 2006 21:03:33 -0000 1.3 --- .classpath 29 Mar 2006 21:26:26 -0000 1.4 *************** *** 5,10 **** <classpathentry kind="lib" path="lib/servlet-api.jar"/> <classpathentry kind="lib" path="webapp/WEB-INF/lib/tbase-runtime-0.11.jar"/> ! <classpathentry kind="lib" path="E:/workspace/adfundum2/lib/informa.jar"/> ! <classpathentry kind="lib" path="E:/workspace/adfundum2/lib/jdom.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- 5,10 ---- <classpathentry kind="lib" path="lib/servlet-api.jar"/> <classpathentry kind="lib" path="webapp/WEB-INF/lib/tbase-runtime-0.11.jar"/> ! <classpathentry kind="lib" path="lib/informa.jar"/> ! <classpathentry kind="lib" path="lib/jdom.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: Jan A. B. <jab...@us...> - 2006-03-29 21:03:36
|
Update of /cvsroot/tbase/applications/adfundum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27267 Modified Files: .classpath Log Message: Index: .classpath =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/.classpath,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .classpath 24 Mar 2006 15:15:00 -0000 1.2 --- .classpath 29 Mar 2006 21:03:33 -0000 1.3 *************** *** 5,8 **** --- 5,10 ---- <classpathentry kind="lib" path="lib/servlet-api.jar"/> <classpathentry kind="lib" path="webapp/WEB-INF/lib/tbase-runtime-0.11.jar"/> + <classpathentry kind="lib" path="E:/workspace/adfundum2/lib/informa.jar"/> + <classpathentry kind="lib" path="E:/workspace/adfundum2/lib/jdom.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: Jan A. B. <jab...@us...> - 2006-03-29 20:56:12
|
Update of /cvsroot/tbase/applications/adfundum/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22211/lib Added Files: jdom.jar informa.jar Log Message: --- NEW FILE: jdom.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: informa.jar --- (This appears to be a binary file; contents omitted.) |
From: Jan A. B. <jab...@us...> - 2006-03-29 20:56:12
|
Update of /cvsroot/tbase/applications/adfundum/webapp/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22211/webapp/components Modified Files: news.tb Log Message: Index: news.tb =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/webapp/components/news.tb,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.tb 27 Mar 2006 21:47:27 -0000 1.1 --- news.tb 29 Mar 2006 20:56:03 -0000 1.2 *************** *** 1,29 **** ! [parser:adfundum.view.util.components.AllParser] [part:all] <h2>HeadLines</h2> <ul id="headlines"> <li> ! <h3><a href="/head1">Ut elementum, lorem sed ullamcorper </a></h3> <p> ! Vivamus ultrices velit feugiat pede. Donec ut lacus in augue ! tristique viverra. Proin malesuada libero in metus. Nunc mauris. ! Vivamus faucibus magna ac odio. Proin vulputate tristique lectus. </p> </li> <li> ! <h3><a href="/head1">pharetra nulla, lacinia </a></h3> <p> ! Nam molestie. Morbi ac quam et libero porta tristique. ! Vestibulum ante ipsum primis in faucibus orci luctus et ! ultrices posuere cubilia Curae; Mauris cursus dui sit amet ligula. </p> </li> <li> ! <h3><a href="/head1">tristique viverra. Proin malesuada libero in metus </a></h3> <p> ! urna. Pellentesque blandit bibendum est. Nullam risus leo, ! fermentum vitae, posuere at, euismod sit amet, lectus. ! Quisque tincidunt libero venenatis mi. Vivamus ut justo. ! Pellentesque iaculis, nibh vel dignissim placerat, neque augue condimentum velit, </p> </li> --- 1,22 ---- ! [parser:adfundum.view.components.AFrss] [part:all] <h2>HeadLines</h2> <ul id="headlines"> <li> ! <h3><a href="[token:link1]">[token:title1]</a></h3> <p> ! [token:desc1] </p> </li> <li> ! <h3><a href="[token:link2]">[token:title2]</a></h3> <p> ! [token:desc2] </p> </li> <li> ! <h3><a href="[token:link3]">[token:title3]</a></h3> <p> ! [token:desc3] </p> </li> *************** *** 31,41 **** <h2>Oud nieuws</h2> <ul id="oldnews"> ! <li><h3><a href="">vel condimentum purus</a></h3></li> ! <li><h3><a href="">Quisque tincidunt libero venenatis mi. Vivamus ut justo.</a></h3></li> ! <li><h3><a href="">dignissim placerat, neque augue condimentum </a></h3></li> ! <li><h3><a href=""> Proin malesuada libero in metus</a></h3></li> ! <li><h3><a href="">Curae; Mauris cursus dui sit amet ligula.</a></h3></li> ! <li><h3><a href=""> Proin vulputate tristique lectus. </a></h3></li> ! <li><h3><a href=""> feugiat pede. Donec </a></h3></li> </ul> <p class="more"> --- 24,34 ---- <h2>Oud nieuws</h2> <ul id="oldnews"> ! <li><h3><a href="[token:link4]">[token:title4]</a></h3></li> ! <li><h3><a href="[token:link5]">[token:title5]</a></h3></li> ! <li><h3><a href="[token:link6]">[token:title6]</a></h3></li> ! <li><h3><a href="[token:link7]">[token:title7]</a></h3></li> ! <li><h3><a href="[token:link8]">[token:title8]</a></h3></li> ! <li><h3><a href="[token:link9]">[token:title9]</a></h3></li> ! <li><h3><a href="[token:link10]">[token:title10]</a></h3></li> </ul> <p class="more"> |
From: Jan A. B. <jab...@us...> - 2006-03-29 20:52:54
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20330/src/adfundum/view/components Added Files: AFrss.java Log Message: --- NEW FILE: AFrss.java --- package adfundum.view.components; import java.io.IOException; import java.net.URL; import java.util.Collection; import java.util.Hashtable; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.tbase.html.TemplateParser; import de.nava.informa.core.ChannelIF; import de.nava.informa.core.ItemIF; import de.nava.informa.core.ParseException; import de.nava.informa.impl.basic.ChannelBuilder; import de.nava.informa.parsers.FeedParser; public class AFrss extends TemplateParser { @Override public void doRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { Hashtable<String, String> fields = new Hashtable<String, String>(); URL url = new URL( "http://studenten.net/pda/rss.asp" ); ChannelIF channel = null; try { channel = FeedParser.parse(new ChannelBuilder(), url ); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } Collection items = channel.getItems(); int counter = 1; for( Iterator i=items.iterator(); i.hasNext(); ) { ItemIF item = ( ItemIF )i.next(); fields.put("title"+counter, item.getTitle() ); fields.put("link"+counter, item.getLink().toString() ); fields.put("desc"+counter, item.getDescription() ); counter++; } setFields(fields); parsePart("all"); } } |
From: Jan A. B. <jab...@us...> - 2006-03-28 19:06:29
|
Update of /cvsroot/tbase/applications/adfundum/webapp/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6349/webapp/components Added Files: date.tb Log Message: --- NEW FILE: date.tb --- [parser:adfundum.view.components.AFDate] [part:date] <div id="datebox"> <span id="day">[token:day]</span> <span id="date">[token:date]</span> <span id="mon">[token:month]</span> </div> |
From: Jan A. B. <jab...@us...> - 2006-03-28 19:06:14
|
Update of /cvsroot/tbase/applications/adfundum/webapp/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6250/webapp/components Added Files: time.tb Log Message: --- NEW FILE: time.tb --- [parser:adfundum.view.components.AFTime] [part:time] <div id="timebox"> <span id="hrs">[token:hour]</span> <span id="min">[token:min]</span> <span id="sec">[token:sec]</span> </div> |
From: Jan A. B. <jab...@us...> - 2006-03-28 19:04:38
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5237/src/adfundum/view/components Added Files: AFTime.java Log Message: --- NEW FILE: AFTime.java --- package adfundum.view.components; import java.io.IOException; import java.util.Date; import java.util.Hashtable; import java.text.SimpleDateFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.tbase.html.TemplateParser; public class AFTime extends TemplateParser { public void doRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { Hashtable<String,String> fields = new Hashtable<String,String>(); Date today = new Date(); SimpleDateFormat formatter; formatter = new SimpleDateFormat("H"); fields.put("hour", formatter.format(today)); formatter = new SimpleDateFormat("mm"); fields.put("min", formatter.format(today)); formatter = new SimpleDateFormat("ss"); fields.put("sec", formatter.format(today)); setFields(fields); parsePart("time"); } } |
From: Jan A. B. <jab...@us...> - 2006-03-28 19:04:06
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4911/src/adfundum/view/components Added Files: AFDate.java Log Message: --- NEW FILE: AFDate.java --- package adfundum.view.components; import java.io.IOException; import java.util.Date; import java.util.Hashtable; import java.text.SimpleDateFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.tbase.html.TemplateParser; public class AFDate extends TemplateParser { public void doRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { Hashtable<String, String> fields = new Hashtable<String, String>(); Date today = new Date(); SimpleDateFormat formatter; formatter = new SimpleDateFormat("EEE"); fields.put("day", formatter.format(today)); formatter = new SimpleDateFormat("d"); fields.put("date", formatter.format(today)); formatter = new SimpleDateFormat("MMM"); fields.put("month", formatter.format(today)); setFields(fields); parsePart("date"); } } |
From: Jan A. B. <jab...@us...> - 2006-03-28 19:04:04
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4850/src/adfundum/view/components Log Message: Directory /cvsroot/tbase/applications/adfundum/src/adfundum/view/components added to the repository |
From: Ron B. <ron...@us...> - 2006-03-27 21:47:38
|
Update of /cvsroot/tbase/applications/adfundum/webapp/pageelements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3916/webapp/pageelements Added Files: beginpage.tb endpage.tb Log Message: Home page setup (first take) --- NEW FILE: beginpage.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"> <head> <title>Adfundum | home</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta name="robots" content="index,follow" /> <meta name="revisit-after" content="10 Days" /> <script type="text/javascript" src="/script/gui.js"></script> <link rel="stylesheet" type="text/css" href="/css/main.css" media="screen" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen" /> <![endif]--> <link rel="home" title="Home" href="/" /> <link rel="contents" title="Sitemap" href="/sitemap" /> <link rel="search" title="Zoeken" href="/zoeken" /> </head> <body> <div id="main"> --- NEW FILE: endpage.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] </div> </body> </html> |
From: Ron B. <ron...@us...> - 2006-03-27 21:47:34
|
Update of /cvsroot/tbase/applications/adfundum/webapp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3916/webapp Modified Files: index.tb Log Message: Home page setup (first take) Index: index.tb =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/webapp/index.tb,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.tb 26 Mar 2006 12:16:22 -0000 1.3 --- index.tb 27 Mar 2006 21:47:27 -0000 1.4 *************** *** 1,16 **** ! [parser:adfundum.view.parsers.RootParser] ! [part:top] ! <html> ! <head> ! <title>Dit is de hoofd pagina</title> ! </head> ! <body> ! <p>Deze pagina wordt geparsed door de RootParser.<br/>De RootParser parsed alleen het part 'top' op dit moment. Ga je gang.</p> ! <p>De klasse-naam van de rootparser is '[token:classname]'</p> ! <p> ! <h2>Information</h2> ! [token:arguments] ! </p> ! <body> ! </html> \ No newline at end of file --- 1,35 ---- ! [parser:adfundum.view.util.components.AllParser] ! [part:all] ! [include:pageelements/beginpage] ! ! <div id="content"> ! ! <div id="about"> ! [include:components/about] ! </div> ! <div id="news"> ! [include:components/news] ! </div> ! <div id="entertainment"> ! [include:components/entertainment] ! </div> ! <div id="extras"> ! [include:components/extras] ! </div> ! ! </div> ! ! <div id="header"> ! ! [include:components/datebox] ! ! <h2>Menu</h2> ! [include:components/menu] ! ! [include:components/loginform] ! ! </div> ! ! ! [include:pageelements/endpage] \ No newline at end of file |
From: Ron B. <ron...@us...> - 2006-03-27 21:47:32
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/util/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3916/src/adfundum/view/util/components Added Files: LoginParser.java AllParser.java Log Message: Home page setup (first take) --- NEW FILE: AllParser.java --- /* * Ad Fundum, TBase application * Copyright (C) 2006 Ron Bakker * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * E-Mail the project team at: tba...@li... * */ package adfundum.view.util.components; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.tbase.html.TemplateParser; /** * @author Ron Bakker * @version $Id: AllParser.java,v 1.1 2006/03/27 21:47:27 ron_bakker Exp $ */ public class AllParser extends TemplateParser { @Override public void doRequest(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException { parsePart("all"); } } --- NEW FILE: LoginParser.java --- /* * TBase Runtime * Copyright (C) 2006 Ron Bakker * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * E-Mail the project team at: tba...@li... * */ package adfundum.view.util.components; import java.io.IOException; import java.util.Hashtable; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.tbase.html.TemplateParser; /** * @author Ron Bakker * @version $Id: LoginParser.java,v 1.1 2006/03/27 21:47:27 ron_bakker Exp $ */ public class LoginParser extends TemplateParser { public void doRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { Hashtable<String,String> fields = new Hashtable<String,String>(); if (request.getParameter("username") != null) { String username = request.getParameter("username").toString(); String password = request.getParameter("password").toString(); fields.put("username", username); if (username.equals(new String("jan"))) { parsePart("loginsuccess"); return; } else parsePart("loginerror"); } else fields.put("username", ""); setFields(fields); parsePart("loginform"); } } |
From: Ron B. <ron...@us...> - 2006-03-27 21:47:32
|
Update of /cvsroot/tbase/applications/adfundum/webapp/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3916/webapp/components Added Files: loginform.tb extras.tb datebox.tb menu.tb about.tb entertainment.tb news.tb Log Message: Home page setup (first take) --- NEW FILE: about.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <h1>Welkom op AdFundum</h1> <p> Ut elementum, lorem sed ullamcorper tincidunt, tellus nibh pharetra nulla, lacinia faucibus velit pede vitae ante. Aenean eleifend eleifend quam. Aenean aliquam <a href="more"> fermentum eros.</a> </p> --- NEW FILE: menu.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <ul id="navigation"> <li><a href="">Home</a></li> <li><a href="">Wonen</a></li> <li><a href="">Leven</a></li> <li><a href="">Shop</a></li> </ul> --- NEW FILE: datebox.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <div id="datebox"> <span id="day">Ma</span> <span id="date">27</span> <span id="mon">mrt</span> </div> --- NEW FILE: extras.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <h2>Het Weer</h2> <p> <img src="weer" width="200" height="200" alt="half bewolkt, 18C, wind ZO 1" /> </p> <h2>Elders...</h2> <ul> <li><a href=""> tempor incididunt </a></li> <li><a href=""> tempor incididunt </a></li> <li><a href=""> quia voluptas sit aspernatur </a></li> <li><a href=""> ea commodi </a></li> <li><a href="">vitae dicta sunt</a></li> <li><a href="">accusantium doloremque </a></li> <li><a href=""> Quis autem vel eum </a></li> </ul> --- NEW FILE: news.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <h2>HeadLines</h2> <ul id="headlines"> <li> <h3><a href="/head1">Ut elementum, lorem sed ullamcorper </a></h3> <p> Vivamus ultrices velit feugiat pede. Donec ut lacus in augue tristique viverra. Proin malesuada libero in metus. Nunc mauris. Vivamus faucibus magna ac odio. Proin vulputate tristique lectus. </p> </li> <li> <h3><a href="/head1">pharetra nulla, lacinia </a></h3> <p> Nam molestie. Morbi ac quam et libero porta tristique. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris cursus dui sit amet ligula. </p> </li> <li> <h3><a href="/head1">tristique viverra. Proin malesuada libero in metus </a></h3> <p> urna. Pellentesque blandit bibendum est. Nullam risus leo, fermentum vitae, posuere at, euismod sit amet, lectus. Quisque tincidunt libero venenatis mi. Vivamus ut justo. Pellentesque iaculis, nibh vel dignissim placerat, neque augue condimentum velit, </p> </li> </ul> <h2>Oud nieuws</h2> <ul id="oldnews"> <li><h3><a href="">vel condimentum purus</a></h3></li> <li><h3><a href="">Quisque tincidunt libero venenatis mi. Vivamus ut justo.</a></h3></li> <li><h3><a href="">dignissim placerat, neque augue condimentum </a></h3></li> <li><h3><a href=""> Proin malesuada libero in metus</a></h3></li> <li><h3><a href="">Curae; Mauris cursus dui sit amet ligula.</a></h3></li> <li><h3><a href=""> Proin vulputate tristique lectus. </a></h3></li> <li><h3><a href=""> feugiat pede. Donec </a></h3></li> </ul> <p class="more"> <a href="">meer nieuws</a> </p> --- NEW FILE: loginform.tb --- [parser:adfundum.view.util.components.LoginParser] [part:loginform] <form action="" id="login"> <fieldset> <legend>inloggen</legend> <label for="username">naam</label> <input id="username" name="username" type="text" value="[token:username]" /> <label for="password">wachtwoord</label> <input id="password" name="password" type="password" /> <input type="submit" value="inloggen" /> <a id="register" href="">registreren?</a> </fieldset> </form> [part:loginerror] <div>Ongeldige gebruikersnaam of wachtwoord</div> [part:loginsuccess] <div>ingelogd als [token:username]</div> --- NEW FILE: entertainment.tb --- [parser:adfundum.view.util.components.AllParser] [part:all] <h2>In de bios</h2> <ul> <li><h3><a href="">vel condimentum purus</a></h3></li> <li><h3><a href="">Quisque tincidunt libero venenatis mi. Vivamus ut justo.</a></h3></li> <li><h3><a href="">dignissim placerat, neque augue condimentum </a></h3></li> <li><h3><a href=""> Proin malesuada libero in metus</a></h3></li> <li><h3><a href="">Curae; Mauris cursus dui sit amet ligula.</a></h3></li> <li><h3><a href=""> Proin vulputate tristique lectus. </a></h3></li> <li><h3><a href=""> feugiat pede. Donec </a></h3></li> </ul> <h2>Films op tv</h2> <ul> <li><h3><a href="">vel condimentum purus</a></h3></li> <li><h3><a href="">Quisque tincidunt libero venenatis mi. Vivamus ut justo.</a></h3></li> <li><h3><a href="">dignissim placerat, neque augue condimentum </a></h3></li> <li><h3><a href=""> Proin malesuada libero in metus</a></h3></li> <li><h3><a href="">Curae; Mauris cursus dui sit amet ligula.</a></h3></li> <li><h3><a href=""> Proin vulputate tristique lectus. </a></h3></li> <li><h3><a href=""> feugiat pede. Donec </a></h3></li> </ul> |
From: Ron B. <ron...@us...> - 2006-03-27 21:46:46
|
Update of /cvsroot/tbase/applications/adfundum/webapp/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3421/webapp/components Log Message: Directory /cvsroot/tbase/applications/adfundum/webapp/components added to the repository |
From: Ron B. <ron...@us...> - 2006-03-27 21:46:41
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/util/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3465/src/adfundum/view/util/components Log Message: Directory /cvsroot/tbase/applications/adfundum/src/adfundum/view/util/components added to the repository |
From: Ron B. <ron...@us...> - 2006-03-27 21:46:41
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3465/src/adfundum/view/util Log Message: Directory /cvsroot/tbase/applications/adfundum/src/adfundum/view/util added to the repository |
From: Ron B. <ron...@us...> - 2006-03-27 21:46:37
|
Update of /cvsroot/tbase/applications/adfundum/webapp/pageelements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3421/webapp/pageelements Log Message: Directory /cvsroot/tbase/applications/adfundum/webapp/pageelements added to the repository |
From: Ron B. <ron...@us...> - 2006-03-27 06:08:15
|
Update of /cvsroot/tbase/applications/adfundum/src/adfundum/view/parsers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21896/src/adfundum/view/parsers Modified Files: RootParser.java Log Message: Generisms Index: RootParser.java =================================================================== RCS file: /cvsroot/tbase/applications/adfundum/src/adfundum/view/parsers/RootParser.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RootParser.java 26 Mar 2006 12:12:07 -0000 1.3 --- RootParser.java 27 Mar 2006 06:08:12 -0000 1.4 *************** *** 43,47 **** { ! Hashtable fields = new Hashtable(); fields.put("classname", getClass().getName()); fields.put("arguments", request.getAttribute("requestArguments").toString()); --- 43,47 ---- { ! Hashtable<String,String> fields = new Hashtable<String,String>(); fields.put("classname", getClass().getName()); fields.put("arguments", request.getAttribute("requestArguments").toString()); |
From: Ron B. <ron...@us...> - 2006-03-27 06:07:46
|
Update of /cvsroot/tbase/tbase-runtime/src/org/tbase/sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21589/src/org/tbase/sql Added Files: TBaseDatabase.java TBaseRecordset.java Log Message: Partial Service/SQL implementation --- NEW FILE: TBaseDatabase.java --- /* * TBase Runtime * Copyright (C) 2006 Ron Bakker * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * E-Mail the project team at: tba...@li... * */ package org.tbase.sql; import java.sql.*; import java.util.*; /** * @author Ron Bakker * @version $Id: TBaseDatabase.java,v 1.1 2006/03/27 06:07:35 ron_bakker Exp $ */ public class TBaseDatabase { private Connection m_connection; public boolean Connect(String driver, String connectionstring, Properties connectionproperties) { try { Class.forName(driver); } catch( ClassNotFoundException e ) { System.out.println("Could not load: "+driver); return false; } String connect_string = new String("jdbc:"+connectionstring); Properties connect_properties = new Properties(connectionproperties); try { m_connection = DriverManager.getConnection(connect_string, connect_properties); } catch (SQLException e) { System.out.println("Could not connect to: "+connectionstring); return false; } return true; } public TBaseRecordset Query(String query) { try { Statement statement = m_connection.createStatement(); ResultSet resultset = statement.executeQuery(query); return new TBaseRecordset(resultset); } catch (SQLException e) { return null; } } } --- NEW FILE: TBaseRecordset.java --- /* * TBase Runtime * Copyright (C) 2006 Ron Bakker * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * E-Mail the project team at: tba...@li... * */ package org.tbase.sql; import java.sql.*; import java.util.*; /** * @author Ron Bakker * @version $Id: TBaseRecordset.java,v 1.1 2006/03/27 06:07:35 ron_bakker Exp $ */ public class TBaseRecordset { private ResultSet m_resultset; private Hashtable<String, Object> m_row = new Hashtable<String, Object>(); public TBaseRecordset(ResultSet resultset) { m_resultset = resultset; } public boolean Fetch() { try { boolean rval = m_resultset.next(); m_row.clear(); if (rval) _mapResultRow(); return rval; } catch ( SQLException e ) { return false; } } private void _mapResultRow() { try { ResultSetMetaData metadata = m_resultset.getMetaData(); int nColumns = metadata.getColumnCount(); for (int i=1; i<=nColumns; i++) { String name = metadata.getColumnLabel(i).toUpperCase(); Object value = m_resultset.getObject(i); m_row.put(name, value); } } catch ( SQLException e ) { } } public Object getValue(String objName) { return m_row.get(objName.toUpperCase()); } } |
From: Ron B. <ron...@us...> - 2006-03-27 06:07:42
|
Update of /cvsroot/tbase/tbase-runtime/src/org/tbase/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21589/src/org/tbase/util Added Files: TBaseServiceContainer.java Log Message: Partial Service/SQL implementation --- NEW FILE: TBaseServiceContainer.java --- /* * TBase Runtime * Copyright (C) 2006 Ron Bakker * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * E-Mail the project team at: tba...@li... * */ package org.tbase.util; import javax.servlet.*; import java.util.*; /** * @author Ron Bakker * @version $Id: TBaseServiceContainer.java,v 1.1 2006/03/27 06:07:34 ron_bakker Exp $ */ public class TBaseServiceContainer extends Thread { ServletContext m_ctx = null; boolean m_running = false; Hashtable<String, Object> m_services = new Hashtable<String, Object>(); public TBaseServiceContainer (ServletContext ctx) { m_ctx = ctx; start(); } public boolean isRunning() { return m_running; } protected void onIdle (long milliseconds) { try { sleep(milliseconds); } catch(Exception e) { } } public void run() { m_running = true; while (m_running) { // check configuration/registry // stop/start new services onIdle(1000); } } } |
From: Ron B. <ron...@us...> - 2006-03-27 06:07:42
|
Update of /cvsroot/tbase/tbase-runtime/src/org/tbase/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21589/src/org/tbase/servlet Modified Files: TBaseDispatcher.java Log Message: Partial Service/SQL implementation Index: TBaseDispatcher.java =================================================================== RCS file: /cvsroot/tbase/tbase-runtime/src/org/tbase/servlet/TBaseDispatcher.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TBaseDispatcher.java 26 Mar 2006 12:11:01 -0000 1.4 --- TBaseDispatcher.java 27 Mar 2006 06:07:34 -0000 1.5 *************** *** 26,35 **** import javax.servlet.http.*; - import java.io.IOException; import java.io.*; - import org.tbase.html.*; import java.net.*; import java.util.*; /** * @author Ron Bakker --- 26,36 ---- import javax.servlet.http.*; import java.io.*; import java.net.*; import java.util.*; + import org.tbase.html.*; + import org.tbase.util.*; + /** * @author Ron Bakker *************** *** 48,52 **** private String m_parsername = new String(); ! private TemplateParser getParser(String templatename) { BufferedReader input = null; --- 49,62 ---- private String m_parsername = new String(); ! public void init() throws ServletException ! { ! ServletContext ctx = getServletContext(); ! if (ctx.getAttribute("tbaseServiceContainer") == null) ! { ! ctx.setAttribute("tbaseServiceContainer", new TBaseServiceContainer(ctx)); ! } ! } ! ! private TemplateParser getParser(String templatename) { BufferedReader input = null; *************** *** 90,95 **** } } ! ! private String getError (int code) { --- 100,104 ---- } } ! private String getError (int code) { *************** *** 264,271 **** templatename = _getTemplate(templatename, args); ! ArrayList<String> arguments = new ArrayList<String>(); for (int i=args.size()-1; i>-1; i--) { ! arguments.add(args.get(i)); } --- 273,280 ---- templatename = _getTemplate(templatename, args); ! Stack<String> arguments = new Stack<String>(); for (int i=args.size()-1; i>-1; i--) { ! arguments.push(args.get(i)); } *************** *** 291,295 **** doRequest(request, response, REQUESTTYPE_POST); } ! } --- 300,304 ---- doRequest(request, response, REQUESTTYPE_POST); } ! } |