cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Flowscript + Actions
Date Fri, 28 Jun 2002 21:45:37 GMT

I managed to hack support for actions, InputModules, and OutputModules
into flowscript. With that one can

  var y = inputValue("request", "a");
  var x = act("request", "", {"parameters":"true", "default.dest":"invalid.html"});
  outputSet("attribute", "dest", x.dest);
  outputSet("attribute", "a", x.a);

(This is not yet in CVS)

However, on two issues I need advice:

a) actions return a java.util.Map. I managed to convert it to a
org.mozilla.javascript.NativeObject -- but I have no idea how to make
it printable / enumerate all values. OTOH should it be done at all?
It's nice to do or a['foo'] instead of a.get('foo') but it 
requires to copy the complete map.

b) actions require a redirector object. Some actions use it to redirect
to another URL -- how should that be taken into account in respect with
flowscript? Make it another property of the returned map? Test for it
and sendPage()? Ignore it?



C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

To unsubscribe, e-mail:
For additional commands, email:

View raw message