Commit graph

862 commits

Author SHA1 Message Date
hns
6b87ffb004 Removed deprecated/unused servlet constructor. 2002-08-02 10:28:52 +00:00
hns
65b8d6b2c4 Major clean-up work on Application constructors. Removed some old
options like setting application file extensions etc. Instead now the Application
constructors can take arguments for the app and db home directories.

Updated helma.main.ApplicationManager and helma.servlet.StandaloneServletClient
to the new constructors.

TypeManager now has file extensions as static final members.
2002-08-02 10:27:31 +00:00
stefanp
236a819d86 change in extension-mechanism:
initScripting() now returns a HashMap (key=varname, value=ESValue) which
will be added to the global object by FesiEvaluator. This ensures that global
vars are (re-)set before each request.
DemoExtension was updated to reflect this change.
2002-08-01 14:37:25 +00:00
stefanp
a4a0405241 fixed a bug that didn't let primitive values returned by a bean pass through
because of a classcastexception.
2002-07-31 15:57:25 +00:00
hns
44aff437b4 Better session cookie creation algorithm. Random number and timestamp are now
woven into one number. Both shorter and (presumably) more secure.
2002-07-29 18:11:51 +00:00
hns
7585b72d7f * Properties file is now read only when needed instead of reading it in constructor
* Implemented case insensitivity for Hashtable methods (get(), containsKey())
* Optimized file checking. Synchronized code is entered only if file has been modified.
* Added lots of comments.
2002-07-29 18:10:29 +00:00
hns
40ba46d788 Fixed issues with HTML comments and Helma macros in Helma format functions. 2002-07-29 14:53:13 +00:00
stefanp
1012b31a6a made app.properties-object readonly, plus formatting fixes. 2002-07-29 12:46:36 +00:00
stefanp
e6cf8647cc added readonly option. 2002-07-29 12:44:57 +00:00
stefanp
b4595a2a29 fixed bug that would check for another server running on the default rmi port
even if helma was using only the embedded webserver.
2002-07-29 12:42:52 +00:00
kmfdm
4b35b3bf2c added comment that advises initScripting, applicationStarted and applicationStopped to be synchronized. 2002-07-29 08:32:09 +00:00
hns
67c80bb772 updated version string. 2002-07-25 12:16:21 +00:00
hns
8d72e0f9c4 Switch off event logging in Jetty 2002-07-25 11:27:18 +00:00
hns
aa73b41701 Acme Serve is no longer used in Helma. 2002-07-24 19:16:28 +00:00
hns
53410917bd Switch to Jetty for embedded web serving needs. 2002-07-24 18:37:20 +00:00
hns
20ea4b874f Get init parameters in in init method instead of a special constructor
the way servlets should.
2002-07-24 18:35:45 +00:00
hns
4e7cc29a82 Slight modification of the way too large file uploads are handled. 2002-07-24 18:34:46 +00:00
hns
a106e43fd0 Ditched getTranslatedSkinpath() and setTranslatedSkinpath in RequestTrans.
getSkinpath() and setSkinpath now directly deal with Object arrays.
2002-07-19 11:35:21 +00:00
hns
02d64e6d1e __prototype__ internal property is now also accessible as _prototype.
Simplified check for internal properties: Every property name starting with an
underscore is now interpreted as internal property.
Added check for null propertyName.
2002-07-18 20:32:28 +00:00
hns
bfa99996c8 Only return property-to-db mapping as properties enumeration if the node
is stored in a relational database. Otherwise, the actual properties are
returned.
2002-07-18 20:19:52 +00:00
hns
c202e31ea3 Set default uploadLimit.
Avoid hanging in in.read() when uploadLimit is exceeded.
2002-07-15 16:15:47 +00:00
hns
101e3ee58a Start embedded XML database without the db file name parameter, which doesn't
exist anymore and wasn't used anyhow.
2002-07-15 14:34:19 +00:00
hns
0128e07d69 Removed code to retrieve prototype from propertiy map in getPrototype().
(This was a backwards compatibility feature for when prototype was stored as
a generic property.)
2002-07-15 14:33:32 +00:00
hns
54f2a0e317 Issue a message to the Server log when moving applications on the
embedded web server.
2002-07-12 19:17:20 +00:00
hns
6978b08841 Specifying the mountpoint for applications on the embedded web server
now actually works. (Servlet path translation was broken).
Application manager is now able to move applications on the embedded web server,
i.e. if appname.mountpoint is modified, the application is re-mounted at the new
location.
2002-07-12 18:57:07 +00:00
hns
17a0a7a93c Cleaned up class quite a bit.
Added -x parameter to specify port of XML-RPC server independently from
RMI server port.
2002-07-12 17:53:08 +00:00
hns
48a7b536a0 * Avoid duplicate child-text-to-property assignment.
* Parse children in sparse mode even if we don't convert the element itself.
* Avoid assigning element text as property "text" in sparse mode.
2002-07-11 12:03:29 +00:00
hns
d41c6d5657 Fixed bug that caused NullPointerException.
Added option to add selected elements to the default subnode
collection via element.childelement = prototype._children.
2002-07-10 18:30:56 +00:00
hns
d6d7141350 First sketch to implement sparse and deep parsing.
The old demo app examples still work.
The new features may require some more tweaking, possibly
also on the mapping prototype file syntax.
2002-07-10 16:56:15 +00:00
hns
7088254cb1 Do not create applications with "." in the application name
when apps.properties is modified.
2002-07-10 13:24:14 +00:00
hns
8ee53d5a25 Replaced (String)props.get() with props.getProperty().
Removed toLowerCase() because XML is supposed to be case
sensitive (or am I missing something here?)
2002-07-05 15:53:58 +00:00
hns
649aac3f7c Use the updatePrototype() method in type manager that takes the
prototype object instead of the prototype name.
2002-07-05 15:07:01 +00:00
hns
65686330fc Update the prototype before returning the skinfiles. 2002-07-05 15:05:55 +00:00
hns
9c3cbea82f Provide a variant of the updatePrototype() method that takes a
prototype object instead of the prototype name.
2002-07-05 15:05:10 +00:00
hns
443dd18158 fixed formatting and indentation. 2002-07-05 13:28:42 +00:00
hns
47ab428371 Check if prototype exists in hasFunction(...). 2002-07-04 18:44:51 +00:00
hns
fab876e2e7 Some cleanup, fixed bug where a zip file with entries for a prototype
would prevent stuff in the prototype's directory to be ignored.  (use
getLastCheck() instead of getLastUpdate() to find out if we should
look for new files in directory)
2002-07-04 18:31:11 +00:00
hns
894c544174 Added javadoc comments, made some fields final. 2002-07-04 18:28:35 +00:00
hns
a85ac92e2b Added private makeNodeHandle method that honors the
prototyperef attribute when converting an XML tag to a NodeHandle.
2002-07-04 17:35:22 +00:00
hns
df4d199072 added getDbMapping(typename) method that gets the DbMapping for
a prototype name.

changed sql argument encoding utility method: single quotes are now
encoded as '' instead of \'
2002-07-04 17:33:56 +00:00
hns
d66a280200 changed sql argument encoding utility method: single quotes are now
encoded as '' instead of \'
2002-07-04 17:33:20 +00:00
hns
47a3202ba8 fixed formatting and indentation. 2002-07-04 17:05:52 +00:00
hns
c9707a83b8 Added appname.mountpoint option for entries in apps.properties
to define where an application should be mounted on the
embedded web server.
2002-07-02 15:16:08 +00:00
kmfdm
2c7bef0c8e fixed typo 2002-06-28 15:14:22 +00:00
hns
fd441f1521 Still checking to see if commit mails are working... 2002-06-27 15:41:00 +00:00
hns
97b4f8b7e9 Updated version date and checking to see if commit mails are working again. 2002-06-27 15:37:09 +00:00
hns
2f722912b5 made getLogger() method public. 2002-06-27 15:28:21 +00:00
hns
a6eb8d62ca Kill Threads the hard way when timeouts occurr.
Eventually, we might want to add a method in the ScriptingEngine
interface for that purpose, i.e. to let scripting engines kill threads in
a soft + specific way.
2002-06-27 14:19:59 +00:00
stefanp
390184871f bugfix: xml-child hop:parent was accidentally read into properties-map too,
after being used for parentHandle.
2002-06-25 13:59:07 +00:00
hns
6bb8d54587 Moved scriptingEngine.updatePrototypes() invocation to the
beginning of the loop in the run() method.
2002-06-21 15:31:02 +00:00