[Helma-user] AJAX XML or JSON Questions, Examples?
Michael Platzer
michael.platzer at knallgrau.at
Mon Nov 12 12:36:54 CET 2007
Philip Weaver schrieb:
> Is the persistence of HopObjects in Helma automatic - are all
> HopObjects automatically saved to disk?
Just if you call .persist() on that HopObject. Or if you pass it via
.add() to an already persisted HopObject (just as root for example).
> Or upon a JSON or XML post request, do you have to manually copy data
> to the HopObject from the req and flush out via the XML object?
You have to manually read out the data from post requests, and have to
decide on your own what to do with them.
> Is there always one root object or does each user get their own root
> object? If each user/session gets it's own root HopObject, how is this
> reflected on disk?
There is always just one root object.
> I love the fact that application data can persist to disk without
> needing an SQL database but I'm still trying to wrap my head around it
> all. I really wish I could find more examples. I am really interested
> initially in using Helma for AJAX requests and would love more
> examples. If I do an HttpRequestObject post does the data
> automatically persist to a HopObject or so I have to do something?
You have to take care of that on your own, but Helma should provide
enough flexibility to acchieve this quite easily.
greets,
michi
More information about the Helma-user
mailing list