I had a quick look on the OJB (Object Relational Bridge tool) and I think now it will be easy to enter the Data into Persistance storage
have a look at http://jakarta.apache.org/ojb/tutorial1.html in the part relating to "Storing Objects" and u can see what happend.
// now perform persistence operations
try
{
//1 . open transaction
broker.beginTransaction();
//2 . make the new object persistent
broker.store(newProduct);
broker.commitTransaction();
}
catch (PersistenceBrokerException ex)
{
// if something went wrong: rollback
broker.abortTransaction();
System.out.println(ex.getMessage());
ex.printStackTrace();
}
I wish this help u
Mohamed
[EMAIL PROTECTED] wrote:
Thank you Mohamed.
I don't use EJB but I use an RDBMS-object mapping tool named OJB.
I haven't enough know-how in XMLForm to apply easily what you said.
Have you a short example to demonstrate it?
Thank you
Sylvain
-----Message d'origine-----
De: Mohamed El-Refaey [mailto:m.refaey@;imkenberg.de]
Date: mercredi, 30. octobre 2002 00:51
À: [EMAIL PROTECTED]
Objet: Re: xmlform and build
Hallo Sylvain
nice, that this help u :) .
ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB]....
for e.g :
if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model Bean: DataBean jBean = (DataBean) getForm().getModel();
u can extract the entered data from this bean, and sned it in any way[Collection data type or whatever u accept the user data] along with a VO(value-object) to be entered into DB by the aid of EJB Class that take this VO and perform the Insert query or whatever the command u need to do with DB
I think this is a breif answer but I wish it give u the way
Thanx
Mohamed
[EMAIL PROTECTED] wrote:
Yes it will help me, thank you Mohamed.
Do you know how to extend this sample to write data you entered in persistence storage (database)?
Sylvain
-----Message d'origine-----
De: Mohamed El-Refaey [ mailto:m.refaey@;imkenberg.de]
Date: mardi, 29. octobre 2002 22:13
À: [EMAIL PROTECTED]
Objet: Re: xmlform and build
Hallo Sylvain
Yes, it is bossible to compile the new Java files and put them under the
WEB-INF classes directory under cocoon and the ramaing files relating to
schematron and XMLForms files and stylesheets put them as a common web
application under cocoon samples or whatever u want.
I wish this will help
Mohamed
[EMAIL PROTECTED] wrote:
hello,
I'm trying to write my first XMLForm form and I follow the doc example (wizard howto).
In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war.
Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar .... ??
Thank you for your suggestions and experiences.
Sylvain Thevoz
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <mailto:cocoon-users-unsubscribe@;xml.apache.org> <[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:cocoon-users-help@;xml.apache.org> <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <mailto:cocoon-users-unsubscribe@;xml.apache.org> <[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:cocoon-users-help@;xml.apache.org> <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <mailto:cocoon-users-unsubscribe@;xml.apache.org> <[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:cocoon-users-help@;xml.apache.org> <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>