Commit graph

  • c503592c49 Removed the need to register application servlets for the internal web server with both appname+"/" and appname+"/*", because Acme Serve now appends dual dummy slashes to the URI path if the servlet for a request isn't found. hns 2002-03-21 15:49:02 +00:00
  • b68fb4764c Treat VARBINARY and LONGVARBINARY as string types (for our purposes, i.e. put values inside quotes). hns 2002-03-19 20:45:31 +00:00
  • c39def352c updated server version date info. hns 2002-03-19 19:36:30 +00:00
  • 027b63bde6 Run endless loop in separate new thread, otherwise the server field will never be assigned the Server object (because the Server constructor never returns, because the calling thread ends up in the loop checking for updates in apps.properties). hns 2002-03-19 19:35:40 +00:00
  • c8be51599b Calling href() on Java objects does indeed work. The problem was that getParentElement() method in Application always returned null (due to a very hard to find bug in helma.main.Server). hns 2002-03-19 19:33:49 +00:00
  • b46c2f1f4f The duplicate clearAppCache() method in Application() isn't necessary anymore because a JavaScript prototype without all the HopObject crap is used for scripting Java objects now. Calling clearCache() will reach through to the Java method. hns 2002-03-19 19:32:41 +00:00
  • 95ed052f76 removed newlines at end of file hns 2002-03-19 19:26:44 +00:00
  • a5547d8d0a removed dead code. hns 2002-03-19 19:26:29 +00:00
  • c6b7f10d11 First simple and not very efficient implementation of res.skinpath, which can contain one singel directoy in which to look for skins. The skin resolution looks like this now: hns 2002-03-19 19:26:07 +00:00
  • c56befd4d4 Scripted Java objects now have a prototype that only has the href() and renderSkin() functions, without all the other functions in Helma objectmodel Nodes that don't apply to Java objects. This was a problem because it "covered" methods in the Java objects with the same name, e.g. list(), delete() etc. hns 2002-03-19 19:24:30 +00:00
  • f3ea5d79a2 added skinpath field to set skin resolution path from properties or from application code. hns 2002-03-19 19:14:09 +00:00
  • b76447298b Fixed bug #65: redirect() doesn't work in onRequest() function. http://helma.org/bugs/show_bug.cgi?id=65 hns 2002-03-19 14:10:06 +00:00
  • 63eb24bae6 Support for version 1.2 of object-relational mapping format. hns 2002-03-13 23:40:48 +00:00
  • 3f7180ae21 minimal formatting fix hns 2002-03-13 23:38:47 +00:00
  • d8697dd762 Append the charset to the content type in method getContentType(), suitable to the HTTP spec. hns 2002-03-13 23:38:13 +00:00
  • 77f29e6dfd Use getContentType() method instead of directly accessing the contentType field in ResponseTrans. The method will append the charset to the content type. hns 2002-03-13 23:37:18 +00:00
  • 3c21f1a7d2 ouch stefanp 2002-03-11 15:03:09 +00:00
  • 0a68003361 fixed typo bug stefanp 2002-03-11 14:48:17 +00:00
  • 69f391d2d6 modified header in apidocs stefanp 2002-03-11 14:46:30 +00:00
  • 4a7616d5a0 This commit was generated by cvs2svn to compensate for changes in r2155, which included commits to RCS files with non-trunk default branches. stefanp 2002-03-11 13:49:50 +00:00
  • 2896aaf82c Removed boolean self parameter from calls of start() and register() methods in ApplicationManager. hns 2002-03-07 17:15:23 +00:00
  • 5b7495dca3 ° An app is now mounted as / on the embedded webserver if the app name is "base", not when it scripts Helma self. This means that it is now possible to have more than one applications scripting the Helma server itself (e.g. a simple overview app in / and a sophisticated admin app in /admin). hns 2002-03-07 17:14:46 +00:00
  • f7ec5f3bbd byte-array of the helma-logo stefanp 2002-03-07 14:46:23 +00:00
  • 4fec331e8d handle http-header for authentication stefanp 2002-03-07 14:41:00 +00:00
  • 3c16c722a7 implemented IPathElement added public functions for base app: static getServer, startApplication, stopApplication, getAppsHome, getProperties, getProperty, getApplication stefanp 2002-03-07 14:39:07 +00:00
  • b52c3e54b4 added getApplication(String name) removed private status from start/stop/register stefanp 2002-03-07 14:33:58 +00:00
  • 86388ccfa2 added methods for http authorization getUsername() + getPassword() stefanp 2002-03-07 14:32:36 +00:00
  • cdd4a205ba added field realm for http authorization stefanp 2002-03-07 14:31:12 +00:00
  • a45d7e9332 implemented IPathElement added some public methods for introspection (clearAppCache, getProperties, getAppDir) stefanp 2002-03-07 14:29:29 +00:00
  • 0895856429 implemented IPathElement stefanp 2002-03-07 14:19:33 +00:00
  • 8bc447ad05 replaced DocFunction.getPrototype() with DocFunction.getDocPrototype() so that we can implement IPathElement stefanp 2002-03-07 14:18:20 +00:00
  • 8557f20d21 no message stefanp 2002-03-07 14:17:30 +00:00
  • b86c3cd693 implemented IPathElement replaced DocFunction.getPrototype() with DocFunction.getDocPrototype() stefanp 2002-03-07 14:16:15 +00:00
  • 4a373e8a09 added default values to fields stefanp 2002-03-07 13:58:07 +00:00
  • d165ce1c28 no message stefanp 2002-03-07 13:54:06 +00:00
  • 393a30e083 added properties for running new base/admin application stefanp 2002-03-07 13:35:28 +00:00
  • 8d1e549e72 Update to MinML 1.7 from http://www.wilson.co.uk/xml/minml.htm hns 2002-03-07 13:03:46 +00:00
  • 07e27b05ef Update to mm.mysql-2.0.11-bin.jar from http://sourceforge.net/project/showfiles.php?group_id=15923 hns 2002-03-07 13:00:38 +00:00
  • c9b927af09 Work on type.properties v. 1.2 support. hns 2002-03-06 15:01:15 +00:00
  • 5cf87fab38 Added code to check whether a value is a string type and should be put in quotes when building a query. Previously, also number values were quoted in SQL queries since neither Oracle nor MySQL seemed to care, but Sybase doesn't like quoted number vaules. hns 2002-03-06 13:07:50 +00:00
  • 802d66ee80 Added isStringColumn method that lets us check whether a column is a string type and values therefore need to be quoted. Previously, also number values were quoted in SQL queries since neither Oracle nor MySQL seemed to care, but Sybase doesn't like quoted number vaules. hns 2002-03-06 13:05:40 +00:00
  • 00a396c2f5 Omit quotes from where-clause of getNodeByKey, since the id value is always an integer. Using quotes used to work fine for Oracle and MySQL, but it seems to cause problems on Sybase. hns 2002-03-01 17:57:38 +00:00
  • fed45aa542 Added try/catch statements to all calls of close() methods in statement and tableset classes. This seems to be necessary when using Sybase, as reported by Georg Backer <gbacker@lionhead.com> on the list. hns 2002-03-01 16:05:00 +00:00
  • 1ef841f9c0 Foundation for new type mapping support in DbMapping class. hns 2002-02-26 16:56:13 +00:00
  • 48205c183e Backpedal on previous change to include Servername ("Helma") again instead of printing only the version number. hns 2002-02-25 16:13:37 +00:00
  • 1db50720f7 Use Server name and version directly from helma.main.Server.version instead of having a separate server anme and version fields. hns 2002-02-25 16:02:10 +00:00
  • 41abbaa3ad updated version info hns 2002-02-25 16:00:53 +00:00
  • 4a3879b0ee Check for readonly flag in putProperty method so that write protected properties can't be modified from script code. hns 2002-02-25 14:48:11 +00:00
  • 4e192c39c0 added public isReadonly() method to check the readonly flag from other packages. hns 2002-02-25 14:45:54 +00:00
  • 3fee354352 ° Cut off _action suffix when setting the action property the reqest object ° Unset done flag when processing an error to make sure it is actually processed hns 2002-02-22 16:26:04 +00:00
  • 8bab32a94c suppress log message if onRequest() function is not defined. hns 2002-02-20 16:57:26 +00:00
  • e966459776 commented out mildly annoying log message for static file requests hns 2002-02-20 16:15:26 +00:00
  • 69cb0cb711 just testing the setup hns 2002-02-20 16:02:15 +00:00
  • ced9315833 Generate multiple valid IDs in generateMaxID() when the prototype's table is empty. Previously, new IDs for empty tables always returned 0. hns 2002-02-01 15:20:22 +00:00
  • 896e5e1854 New code to find out which action to call. From now on, every function ending with "_action" may be invoked via HTTP. It isn't necessary anymore to define the action in a .hac file. hns 2002-01-30 15:37:35 +00:00
  • a132619c8d updated version string hns 2001-12-13 11:56:21 +00:00
  • 14fe874b38 Adapted to change from Hashtable to HashMap in DbMapping. Basically, an Iterator is used instead of an Enumeration for looping through the mapping tables. hns 2001-12-13 11:54:48 +00:00
  • 15941ce4f4 Big cleanups and fixes: hns 2001-12-13 11:51:20 +00:00
  • cda86002f3 Pass through RedirectExceptions from renderSkin function. hns 2001-12-13 11:46:42 +00:00
  • ad1c5fbb60 Return instances of ESValue without conversion to ESValue, i.e. without calling ESLoader.normalizeObject(). hns 2001-12-13 11:45:46 +00:00
  • d306e6fa18 Don't do deep serialization of HopObjects. Instead, for HopObject properties a proxy object is created for serialization. It is a Hashtable with two entries: id and prototype, containing the the id and prototype name of the referenced HopObject as string values. hns 2001-12-07 16:18:38 +00:00
  • 7ee29bfdc3 Fixed bug in asynchronous client, although this is untested and unused code. Eventually we'll have to switch to Apache XML-RPC since this is where bugs will get fixed from now on. hns 2001-12-07 16:16:11 +00:00
  • d141d65585 updated version info hns 2001-12-07 12:38:51 +00:00
  • 93eb5c9750 set the name of the action in the request object when executing an action. hns 2001-12-07 12:38:31 +00:00
  • 2574442456 added action field to let application code know the name of the action being executed. hns 2001-12-07 12:37:34 +00:00
  • 24b8f34382 Pass application object in constructor for internal DbMapping object. hns 2001-12-06 22:40:30 +00:00
  • 9da4b1dec9 Reset created and lastModified at the end of the constructor for relational nodes to show that the object hasn't been modified since it was fetched from db. hns 2001-12-06 22:38:14 +00:00
  • a8fd428530 Every DbMapping object must now have a reference to the application it belongs to. hns 2001-12-06 22:35:24 +00:00
  • ef5b901c1e updated version info hns 2001-12-04 12:46:21 +00:00
  • f13c73a5d1 if a prototype if specified for groupby nodes, use the DbMapping parsed by the application instead of creating a vanilla DbMapping. This makes it possible to actually define additional properties and collections on groupby nodes. hns 2001-12-04 12:45:29 +00:00
  • deca565254 Not needed anymore. hns 2001-12-02 22:53:22 +00:00
  • 9622366678 Switched back from custum UrlEncoder to standard java.net.URLEncoder class. hns 2001-12-02 22:52:20 +00:00
  • 246e79fa14 minimal formatting change hns 2001-12-02 22:50:56 +00:00
  • c85b7e106a fixed bug: embedded webserver always sent no-cache header. hns 2001-12-02 22:50:25 +00:00
  • 9b6f706853 added smtp server property, which is typically be set per Helma installation. hns 2001-11-29 17:50:03 +00:00
  • 22e7f0c95c added hard linebreaks on pos. 70 p3k 2001-11-29 15:15:14 +00:00
  • 0ba6b08469 added line to prevent build.sh from being included twice p3k 2001-11-29 14:56:44 +00:00
  • c4d1367570 updated license to new version 1.2 [http://helma.org/rfc/license12/] p3k 2001-11-29 14:21:55 +00:00
  • 43a298b75f Updated to new format, added some explanatory comments. hns 2001-11-28 15:22:34 +00:00
  • 79763b9c9a added chmod 755 in tarfileset for build.sh p3k 2001-11-28 14:30:19 +00:00
  • 4476523c67 increased version info hns 2001-11-28 13:39:12 +00:00
  • 09fc07cfd2 added chmod 755 for build.sh; updated version number p3k 2001-11-28 13:22:26 +00:00
  • 3874ff5148 this file is ok with dos linebreaks, you clown! p3k 2001-11-27 17:43:57 +00:00
  • dff0c5a77a converted linebreaks to unix (shit, this happens all the time!) p3k 2001-11-27 17:41:10 +00:00
  • e9aa7b7edd Let user cache have the user prototype and dbmapping so collections/virtual subnodes work for anonymous users. hns 2001-11-27 16:50:00 +00:00
  • dee820e805 Prevent type.properties check when accessing properties of Java objects as skin macros. hns 2001-11-27 16:08:15 +00:00
  • a73255d123 initial check-in p3k 2001-11-27 15:54:15 +00:00
  • e42ce0ae46 Allow access to static fields from javascript. hns 2001-11-27 15:49:33 +00:00
  • 40b85a3838 added more example applications p3k 2001-11-27 15:46:10 +00:00
  • cde4b29a5b added more example applications for checkout p3k 2001-11-27 15:44:17 +00:00
  • accd2f15e9 increased version info. hns 2001-11-27 14:16:13 +00:00
  • 5da1156043 Do not encode prefix and suffix attributes of macros. hns 2001-11-27 14:15:41 +00:00
  • aec53f4425 Added code to find out if a property is defined in the type.properties file before returning its value as a macro. hns 2001-11-27 14:15:18 +00:00
  • 0dd58e56b0 added isPrimitive() utility method to find out if this property can possibly be used as skin macro. hns 2001-11-27 14:12:00 +00:00
  • f017f35e78 Increased version number. hns 2001-11-26 18:02:39 +00:00
  • e32c31e1b1 Cache nodes are checked each time they are retrieved because the clearCache() function may have been called on the object since last accessing the cache node. hns 2001-11-26 17:58:00 +00:00
  • c4fb354f92 Implemented clearCacheNode() method to recreate/reset a node's cache node. hns 2001-11-26 17:55:57 +00:00
  • 35c78734e8 added a clearCache() function to the HopObject prototype that lets one clear (recreate) the HopObject's cache node. hns 2001-11-26 17:33:02 +00:00
  • ffd9564328 added clearCache function to reset the application cache. hns 2001-11-26 17:30:50 +00:00
  • 49474a3317 rewrote the mechanism to write out to the response object. hns 2001-11-26 17:30:06 +00:00