cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject [C2] [2.1-dev] various fixes and changes
Date Tue, 14 Aug 2001 06:47:40 GMT
Hi again,

The following patch tries to address a few issues I've encountered.

- in build.xml, the tools.jar is assumed to be in $JAVA_HOME/lib/tools.jar. It
turns out that JAVA_HOME usually points to the jre/ directory inside the jdk/
directory, while the tools.jar is in the lib/ directory of jdk/. Something like
this:

jdk/
  jre/
    lib/
      no tools.jar here <-- this is where ${tools.jar} points to
  lib/
    tools.jar <--- it is really here

This is true at least on Sun's JDK 1.3.1 under Linux. Could somebody else
verify this? If this is the case on all the JDKs, the patch for build.xml fixes
the problem.

- the patch for ProcessingException adds a new constructor which allows
creating such an exception given some other one. This functionality is needed
so that the original stack trace is preserved inside the embedded exception.

- the patch for request.xsl adds xsp-request:get-session-id.

- the patch for xsp.xsl allows for initialization code to be generated at the
entry in the generate() method using the xsp:init-page element. Note that this
is not the same with the xsp:logic element placed before the first element
inside xsp:page. While the xsp:logic generates code which ends up before the
declaration of the generate() method, the xsp:init-page generates code right
inside generate(), before anything else is executed. This feature is useful in
some of the logicsheets I have here.

Please let me know what you think of these changes.

Greetings,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)


Mime
View raw message