Commit graph

1527 commits

Author SHA1 Message Date
hns
2b9cee82da Print out exception's toString() rather then just its class. 2003-09-09 11:23:15 +00:00
hns
5577263f66 * When there is a syntax error in any file associated with a prototype, always
throw an error and display a proper error message when on object of that type is
accessed.
*  RhinoEngine.hasFunction() now checks on the actual object (wrapper) and
thus is always right.
*  Unwrap WrappedException when caught in RhinoEngine.invoke()
*  Use helma.util.CacheMap instead of java.util.WeakHashMap for wrapper caching,
possibly fixing a GC problem
2003-09-05 19:53:07 +00:00
hns
6eb8cf9442 Try to use proper character encoding in multipart/form-data (file upload) requests. 2003-09-05 19:32:34 +00:00
hns
fb3196cfd5 Unwrap JS-native number and boolean objects in put() and return them as
they are in get().
2003-09-05 15:44:24 +00:00
hns
6d7a8eba66 Make sure the array returned by HopObject.list() has its prototype set properly. 2003-09-04 20:03:41 +00:00
hns
76a07955d3 Allow unprototyped JavaScript objects as macro handlers. 2003-09-03 10:05:21 +00:00
hns
e3dfc52191 Return a native JavaScript array in HopObject.list() rather than a wrapped Java array. 2003-09-02 16:55:24 +00:00
hns
75c7dff23b Fix bug in HopObject.remove() where we prematurely call unset().
The right thing *seems* to be to actually always call removeNode on the node's parent.
2003-09-02 16:08:05 +00:00
hns
262ba9d5e3 Remove debug message when removing function 2003-08-29 15:49:58 +00:00
hns
1857ff79c5 Increased version to 1.3.1 2003-08-28 12:17:53 +00:00
hns
8e4c36d83e Token definitions moved from org.mozilla.javascript.TokenStream to
org.mozilla.javascript.Token in the new Rhino CVS snapshot.
2003-08-27 15:55:36 +00:00
hns
31987ea058 Removing rhino.jar from lib/ext (it's in lib now). 2003-08-27 15:54:03 +00:00
hns
f9afc55c26 Adding rhino.jar to list of system classes, removing jdom.jar. 2003-08-27 15:53:15 +00:00
hns
e787d2f209 Removing jdom.jar. 2003-08-27 15:52:05 +00:00
hns
18684f94ec Adding Rhino CVS snapshot from 2003/08/27. 2003-08-27 15:50:03 +00:00
hns
2e315e21d9 Make HTTP response status default to 200. 2003-08-25 14:40:33 +00:00
hns
7436ee2237 * Changed Helma version to 1.3.1
* Made CVS tag of apps configurable with cvs.apps.tag option
2003-08-20 12:08:10 +00:00
hns
f5089a8c01 return wrapped.toString() in toString(). 2003-08-19 14:11:46 +00:00
hns
5c9df59014 Check if Server singleton exists before trying to get the list of extensions from it. 2003-08-18 14:50:18 +00:00
hns
c583133234 Catch all exceptions in stopAll() application loop to make sure all apps are stopped. 2003-08-18 12:24:56 +00:00
hns
a5feff74f6 Added "..." to shutdown stderr message. 2003-08-18 12:24:16 +00:00
hns
ebdf361ce5 Upgrade from Mckoi release 1.0.1 to 1.0.2 2003-08-18 11:55:34 +00:00
hns
a3995df1af Remove obsolete mysql driver. If people want to run Helma with MySQL,
they should get an up-to-date version from www.mysql.com.
2003-08-18 11:54:24 +00:00
hns
1a45d7e049 Changed getxxx() to getXxx() in bean getters and setters as rhino is able to
deal with this and create obj.xxx properties.
2003-08-18 11:53:01 +00:00
hns
303e0f4c55 Print out message in shutdown hook so people know everything's ok. 2003-08-18 11:51:10 +00:00
hns
3be7e4db54 Fix NullPointerException in writeln() introduced in previous commit. 2003-08-18 11:13:39 +00:00
hns
2014f13cfd Omit prefix and suffix when writing out default macro value as suggested in
http://www.helma.org/bugs/show_bug.cgi?id=267#c1
2003-08-18 10:29:34 +00:00
hns
7dc1bb8a2f setJavaPrimitiveWrap(false) in wrap factory and remove special handling for strings. 2003-08-18 10:28:45 +00:00
hns
adba53e86a Handle Undefined.instance and ScriptableObject.NOT_FOUND in ScriptingEngine.get().
Fix for bug 267: http://www.helma.org/bugs/show_bug.cgi?id=267
2003-08-18 10:27:55 +00:00
hns
331dc61787 Committed code improvements proposed by Jürg Lehni
http://grazia.helma.at/pipermail/helma-dev/2003-August/000330.html
2003-08-18 09:58:26 +00:00
hns
99a0c1ea84 Fixed a few bugs caused by bad argument checking, mostly
null that should have been Undefined.instance.
2003-08-08 14:23:12 +00:00
hns
cd10424299 Accept INode instead of HopObject as argument since HopObject now
implements org.mozilla.javascript.Wrapped and will be unwrapped when passed
outside the scripting engine.
2003-08-08 14:03:53 +00:00
hns
d8236fb3b5 Do not override wrapAsJavaObject() in WrapFactory since it is only called
after we already did our checks in wrap() or wrapNewObject().
2003-08-08 12:19:00 +00:00
hns
b25185451f Catch all Throwables when initializing extensions, improved logging output. 2003-08-07 16:32:08 +00:00
hns
bec04779ed ported from fesi to rhino. 2003-08-07 16:22:26 +00:00
hns
bfc1b8914d Remove Fesi scripting engine from Trunk 2003-08-07 16:11:31 +00:00
hns
d4b8b3c2af Removing FESI from Trunk 2003-08-07 16:05:11 +00:00
hns
817262b331 Removed regexp jars, not needed by Rhino. 2003-08-07 15:38:26 +00:00
hns
dbdf74b27b Set lastError instead of throwing Exceptions. 2003-08-07 15:00:48 +00:00
hns
dbd5d63853 Use TYPE_INT_ARGB instead of TYPE_INT_RGB when creating new BufferedImage
instances to allow for transparency (proposed by Jürg Lehni)
2003-08-07 13:05:03 +00:00
hns
be94b98311 New reduceColors(): try JIMI ColorReducer first, which preserves transparency, but
throws an exception for some images. If that fails, use the alternative color reduction code
from helma 1.2.
2003-08-07 13:04:05 +00:00
hns
17427e1e16 Implement getImage method to get to the java.awt.Image as suggested by Jürg Lehni. 2003-08-07 12:17:55 +00:00
hns
55b48fd484 Implemented session.login(HopObject) as proposed by Stefan Matthias Aust.
http://grazia.helma.at/pipermail/helma-dev/2003-July/000191.html
Added some JavaDoc comments.
2003-08-07 11:58:57 +00:00
hns
bebce2ad3d Make HopObject implement the Rhino Wrapper interface.
Replace NativeJavaObject with Wrapper when unwrapping wrapped Java objects.
2003-08-07 11:26:44 +00:00
hns
4b91011578 Implement invocation of scripted getChildElement(name) function when resolving
a request path also when objects implement IRequestPath interface.
The biggest change was induced by the need to have an object representing the
request path that is able to grow while the path is being resolved. Previously, this was done
by passing an ArrayList to the scripting engine that was then transformed into a JavaScript
array. This is now done using a proprietary RequestPath object.
2003-08-06 16:36:49 +00:00
hns
8c080a5da3 Implement getXmlDocument() and getHtmlDocument() 2003-08-06 16:28:01 +00:00
hns
2e9be2b71e Unset propRelation if group/accessname isn't used anymore. 2003-08-05 18:43:10 +00:00
hns
092cb230c0 Allow upper case characters in app names by interpreting the property value as
app name in apps.properties, if it is defined.
2003-08-05 15:54:29 +00:00
hns
e8a45cb3b4 Added getGraphics method as proposed by Jürg Lehni.
http://grazia.helma.at/pipermail/helma-dev/2003-July/000237.html
Added basic JavaDoc comments.
2003-07-31 14:58:34 +00:00
hns
47f548afa4 Fix indentation 2003-07-31 14:28:27 +00:00