Re: Re: Ozone-users digest, Vol 1 #655 - 1 msg

"Nicolas Barrera" <[email protected]> Tue, 18 Apr 2006 09:35:24 -0300
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
Hi,

> 1.) i need to take input from the user using a servlet.......how can i  p=
ass data to >the db which is to be stored.......

As the answer for question #1, i 'd say  that calling a 'batch file
for creating a new user ... and pass arguments from the servlet' IS
NOT the way to store something in the DB, at least in ozonedb.

Ozone is meant to be transparent to objects, you DON'T NEED to call an
external batch file from your source code (e.g. servlet) to store
something.

to store AN OBJECT in the DB you need to follow some steps that you
'll find in the ozone tutorial (you can read it from the Ozone User
Guide: http://sourceforge.net/docman/display_doc.php?docid=3D10396&group_id=
=3D39695

Some of these 're :
+ create a new class which extends OzoneObject
+ create interfaces which this new class implements
+ mark update methods in the interface
+ run Ozone Post Processor
.... (some which i may 've omitted)
+ and finally run your (web or whatever) application simply using your
object (whose class extends from ozone object)

In fact, you could 'consider' things stored when you call methods
marked as /*update*/ methods of your OzoneObject (e.g. setter
methods).


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642