Or should they be called streams. :) Anyway I'm trying to add support for Threads to a Water application. My first thought is to define a method: thread, that...
... In many ways, the threading model of languages such as Java, can easily introduce a lot of potential problems in software design. The actor model is an...
So I am working on an HTTP session tracking layer for Water. At the end of this post is part of the code I've been messing around with. I'm having a problem...
Brian, The major missing piece is that when you create an instance from a class, the data fields are not automatically copied down into the new instance. This...
Thanks! I tried to get <copy_down_data/> to work, but it always errors: Attempt to call an unknown method or object named: copy_down_data. It's called on ...
I am trying to redirect the output from my water application in to a text file.Can anyone let me know how to determine the current working directory in Water? ...
Pamela, You should be able tp do this to find the current working directory: <java_env />.<eval> System.getProperty("user.dir"); </eval> You could wrap it in a...
I get this when I tried with the code you sent.Am I missing something like importing some files etc? Attempt to call an unknown method or object named: _eval ...
The eval function works when used as: <java_env/>.<eval> System.getProperty("user.dir");</> But still the above code points to the user's Desktop and not to...
I tried this too.. <file "logical://user/OUTPUT.txt" /> my output is written to a file present in the water default directory present in C:\Documents and...
I have a method-local variable that I want to increment: ... <set x=0/> <increment x/> ... This doesn't work since x is evaluated to 0 and then the increment ...
So, I want to store objects in an instance of "thing". I want to see how many items are stored in the instance. length returns the smallest unused integer...
Hi, The below code creates a new txt file (the name of the file is same as that of the source file) in a directory where the source file is present. <set...
You could create a method in <thing /> called <num_fields /> thing.<insert <defmethod num_fields> <set a_total=0 /> _subject.<for_each> _parent.<increment...
do you know some basic examples tutorials to understand Water ?? i get the examples at waterlanguage.org , but didn't understand very well thank's [ é r i c ]...
[ é r i c ]
eric.lopes@...
Mar 20, 2004 5:45 am
567
Eric, This message board is the best place right now to get your questions answered, but I went ahead and started to put a site together. I will be adding...
I have been mulling this problem for a while and finally smacked it out this afternoon from scratch after Vijaya Jonnalagadda contacted me again to ask about...
Can any one let me know the usage of radio buttons /check boxes in Water? i.e.;to determine which option got selected at runtime etc.. Thanks in advance, Pam....
... <!-- Class to server a form with radio buttons and checkboxes --> <defclass myapp> <!-- Default method to display the FORM --> <defmethod start> <FORM...
Pam, This sounds like you're going to need some Javascript to do what you want. There are a lot of pages out there with tutorials. Try Googling [javascript...
Hi, I heard of Water recently and I have been studying Water language for a few days. I was fascinated by an example code got from this message board (posted...
Robin, There is an excellent small web server written in Java at: http://www.cafeaulait.org/books/jnp/javanetexamples/08/jhttp.java Compare that to this Water...
BostonWater User Group: Tuesday, March 29th, 2004 7:00pm Cambridge, Massachusetts near MIT Directions and details at: http://www.bostonwater.org/ Building...
Hi, I would like to know if there is a built-in function to split a string at a given delimeter... like for example a_string.<split "pamela/moats",'/'/> should...
<set a_string="pamela/moats"/> a_string.<split "/" /> --> <vector "pamela" "moats"/> This is from memory, but that's the basic idea. You pass split the...