Commit graph

2302 commits

Author SHA1 Message Date
hns
b4276f683b * Log Jetty messages to Helma logger. 2007-03-28 13:40:09 +00:00
hns
b2a6acdf97 * Minor formatting bug: missing dot in onStop() error output. 2007-03-28 13:10:04 +00:00
hns
11022c42b6 * Forward put()s from the thread scope to the shared scope during
repository injection. Fixes bug 504.
2007-03-27 19:51:43 +00:00
hns
c04d2db80f * Implement res.pushBuffer(StringBuffer) and res.popBuffer() to get
StringBuffers in and out of the res buffer stack. This is needed for
  efficiently implementing the method described in
  http://dev.helma.org/wiki/Handler+for+rendered+skins/
2007-03-27 12:53:28 +00:00
hns
ac0a5f1daa * Implement app.charset and app.getCharset() to get the app's default charset
* Fill in missing JavaDoc comments
2007-03-27 12:46:35 +00:00
hns
39cdaf045f * Undo previous change. 2007-03-27 12:44:43 +00:00
hns
9fe75abfba * Make req.path start with "/" 2007-03-27 12:34:20 +00:00
hns
0dbf6751b7 * Complain about missing handler in default failmode.
* Streamline a bit by passing ScriptingEngine instead of RequestEvaluator
  in some cases.
2007-03-23 19:43:57 +00:00
hns
731ec80ac1 * Refactor Macro.render() method into two distict methods in order to invoke
invoke macros without rendering the result to the response (useful for
  nested macros).
2007-03-23 16:32:19 +00:00
hns
dd899e67b9 * Go safe and use Rhino inspection for getProperty() on HopObjects. 2007-03-23 16:31:03 +00:00
hns
3e20cadca1 * Allow subskins of the currently rendered skin to be rendered using
relative skin names ("#subskinName")
* Fix minor bug in subskin parsing.
2007-03-23 11:16:06 +00:00
hns
4531ef6e4b * Implement subskins
* Fix skin failmode levels
* Add Resource.getOverloadedResource()
* Implement ScriptingEngine.isTypedObject(Object)
* Fix skin length bug with non-ASCII characters
2007-03-22 15:34:10 +00:00
hns
0b363a4b96 * Mark all changing fields as volatile.
* Issue a warning if a non-existing function was invoked.
2007-03-22 15:18:47 +00:00
hns
b6d72d79af * Add allowDeepMacros property which must be set to "true" in order to allow
macros with deep paths.
* Issue an error message if a macro isn't terminated properly.
2007-03-20 11:02:23 +00:00
hns
984c6a62a4 * Implement positional macro parameters.
* Resolve conflict between failmode and default attributes:
  failmode=silent now results in default value to be used if the macro
  fails to resolve or execute.
* Extract and clean up argument preparation code.
2007-03-19 16:46:45 +00:00
hns
159251911d * Implement new toCharArray(String) method. 2007-03-16 23:18:06 +00:00
hns
3020e80650 * Fix bug that prevents non-global filters to work. 2007-03-16 06:11:17 +00:00
hns
de09d0aac9 * Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
2007-03-15 17:16:32 +00:00
hns
e4784f870d * Refactor and enhance Skin class:
- implement macro/filter pipes <% foo | bar %>
  - implement deep macros <% foo.bar.foo %>
  - implement nested macros <% foo x=<% bar %> %>
  - implement failmode=silent|verbose attribute
* Refactor ScriptingEngine interface and implementation to support
  new skinning features.
2007-03-15 17:15:25 +00:00
hns
1ef63471aa * Optimize WrapMaker methods a little bit. 2007-03-15 17:12:32 +00:00
hns
e9cf02914c * Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
2007-03-15 16:23:22 +00:00
hns
4494d0bff5 * Implement negative result caching in getPrototypeName(Object). 2007-03-15 16:21:00 +00:00
hns
2b7e92d9f6 * Change res.abort() semantics:
Just abort transaction and do not stop request execution,
  since we now have res.stop() to do the latter.
2007-03-15 16:19:28 +00:00
hns
c070627d99 * Set prototype and parent scope, although we'd have to return NOT_FOUND
in get() in order to get the prototype chain working.
2007-03-15 16:16:16 +00:00
hns
504e5dba18 * Fix string splitting regexp in splitLines(). 2007-03-15 16:08:59 +00:00
hns
814f1307db * Add check and debug message for invalid line index. 2007-03-09 11:32:41 +00:00
hns
6aba4c136f * Minor formatting fix. 2007-03-09 10:15:41 +00:00
hns
156e65909e * Implement switchProperties() to allow to switch db connections at runtime.
* Minor cleanup/simplification in getConnection().
2007-03-08 15:40:09 +00:00
hns
60c118cae9 * Pedal back from previous commit.
Fixes http://helma.org/bugs/show_bug.cgi?id=501
2007-02-25 15:44:33 +00:00
hns
6db9463c24 * Include tagsoup.jar in Helma classpath.
* Exclude apache-dom.jar and jimi.jar, the latter must be placed in
  lib/ext, the first is useless for using getHtmlDocument(), use xercesImpl.jar
  and xml-apis.jar from the Xerces2-java distribution instead.
2007-02-21 14:37:59 +00:00
hns
7fd724eca3 * Make sure RuntimeException can pass through in getHtmlDocument() so users
become aware of setup problems (missing xercesImpl.jar, xml-apis.jar).
2007-02-21 14:28:12 +00:00
hns
8a85d6d5cf * Drop hacked-together HtmlParser class, move to Tagsoup for HTML parsing.
* Move remaining HTML parsing code into XmlUtils.
* Clean up XmlUtils code.
2007-02-21 14:26:36 +00:00
hns
f4b281a639 * Add RhinoCore.isInitialized() to check whether we are up and running yet.
* Initialize prototypes on static constructor access also when prototype property
  is accessed, using RhinoCore.isInitialized() to check against premature compilation.
2007-02-21 13:00:07 +00:00
hns
cecd2af590 * Use sub-properties for getting DbSource settings and comparing DbSource instances.
Fixes http://helma.org/bugs/show_bug.cgi?id=500 and improves the code.
2007-02-21 10:45:24 +00:00
hns
43165e0bab * Backpedal on previous commit: Even fetch columns if the table is inherited, because the
column-property mapping may still be different. Fixes http://helma.org/bugs/show_bug.cgi?id=499
2007-02-21 09:34:22 +00:00
hns
350043980e * Update version from 1.6.x to 1.6.0. 2007-02-16 09:47:38 +00:00
hns
04a9ce2d3a * Support binary database column mapping, fix http://helma.org/bugs/show_bug.cgi?id=498
* Some code cleanup and minor rewrites.
2007-02-15 15:08:43 +00:00
hns
c0118398bb * Add cause exceptions to rethrown exceptions where they were missing.
* Remove stack dumps, this should be done by catching code.
2007-02-15 15:05:56 +00:00
hns
514ad900c5 * Optimize getDbColumns() for inheriting relational dbmappings.
* Avoid useless double assignment to column field
2007-02-15 14:13:53 +00:00
hns
3a263d9243 * Add getter for SessionManager, required by helmaswarm. 2007-02-14 14:55:26 +00:00
hns
2d25df3cbb * Always use shared scope for creating streams in serialize() and deserialize().
Fixes http://helma.org/bugs/show_bug.cgi?id=496
2007-02-12 13:15:09 +00:00
hns
fa5430a1d3 * Trim href after rendering it from skin in postProcessHref() to cut of space/newline chars. 2007-02-10 10:09:08 +00:00
hns
235d29fe26 * Use logger to log error instead of writing to System.out. 2007-02-09 13:45:29 +00:00
hns
7f6226ac17 * Implement Mail.get/setMultipartType() as proposed by Maksim Lin on helma-dev. 2007-02-09 13:42:53 +00:00
hns
d19b83008b * Implement equals() and hashCode() in order not to create new
database connections for each DbSource instance when a connection
  to the database is already registered.
2007-02-08 12:53:07 +00:00
hns
b80b83ffb3 * Rename "constructor" property in defineProperty() rathern than in put(),
since this is what Rhino uses to set the property at compile time.
2007-01-31 16:59:08 +00:00
hns
740091f4d8 * Compute isRelational() at runtime, since in some border cases
it must be available before we used to compute it  in update().
2007-01-31 14:43:15 +00:00
hns
a874998ffb * Increase default maxThreads value to 50 (evauators aren't that expensive anymore)
* Some minor code cleanup
2007-01-30 14:58:30 +00:00
hns
21838fe606 * Remove synchronization problems in request timeout handling
* Implement skin parameter handling via res.handlers.param
* Implement onResponse() callback
* Slim down renderSkin method implementation
* Implement res.buffer to access current page output
* Implement res.stop() to stop request execution
* Do not reuse per thread scope, create a new one for each request
2007-01-29 16:00:44 +00:00
hns
e6c287b35f * Use ThreadLocal.set(null) instead of ThreadLocal.remove(),
which wasn't available pre Java 5.
2006-12-20 23:00:28 +00:00