RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread Mohd Amin Mohd Din
I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused 



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread David G Friedman
I'd like to know what your Hibernate problem was
since I'm using hibernate and never had a problem
with it saving data, unless I had the wrong
information in the object, causing a Hibernate
Exception, which I caught.

Do you have show_sql=true in your hibernate.properties
or hibernate.cfg.xml file?

It shows me what the SQL statement is when it is performed,
such as:

Hibernate: select login0_.vendorid as vendorid, login0_.Login as Login,
login0_.Password as Password, login0_.type as type from company login0_
where (login0_.Login=? )

I'm also using transaction syntax like so:

SessionFactory sf = // however you initialize it, I use
// the hibernate Struts pluging from hibernate.org
Session sess = sf.openSession();
Transaction tx = sess.beginTransaction();
// do something
tx.commit()
etc... ;

I had plenty of Hibernate errors when I started
until I started using the SchemaExport and
hbm2ddl classes to create my relevant objects.

Regards,
David

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 2:42 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue


I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread Mohd Amin Mohd Din
Some of the updates were done using transactions.the show_sql=true,
the command line shows insert sql being run but the data is just not in
there. Commit also was performed. Maybe it's an Oracle specific issue or
something.
For my objects, I do use the reverse generator which does need a bit of
editing especially the sequence part, since most of the ids in the
Oracle database use sequences to generate unique ids.

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 3:18 AM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue

I'd like to know what your Hibernate problem was
since I'm using hibernate and never had a problem
with it saving data, unless I had the wrong
information in the object, causing a Hibernate
Exception, which I caught.

Do you have show_sql=true in your hibernate.properties
or hibernate.cfg.xml file?

It shows me what the SQL statement is when it is performed,
such as:

Hibernate: select login0_.vendorid as vendorid, login0_.Login as Login,
login0_.Password as Password, login0_.type as type from company login0_
where (login0_.Login=? )

I'm also using transaction syntax like so:

SessionFactory sf = // however you initialize it, I use
// the hibernate Struts pluging from hibernate.org
Session sess = sf.openSession();
Transaction tx = sess.beginTransaction();
// do something
tx.commit()
etc... ;

I had plenty of Hibernate errors when I started
until I started using the SchemaExport and
hbm2ddl classes to create my relevant objects.

Regards,
David

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 2:42 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED] ? was hibernate the issue


I'm guessing at the moment that hibernate is behind some of this. How? I
don't know because in the log files, hibernate is saying that its
storing data into the database but, when the table is checked, data has
not been entered. Another thing, sometimes it stores the data into the
table and sometimes it does not. Weird. I guess some misconfig, but at
the moment back to hand coding SQL :-(

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:05 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]

I'm using eclipse and tomcat.. Previously have delivered another project
which was ok. Confused



-Original Message-
From: Mathew, Manoj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:33 PM
To: Struts Users Mailing List
Subject: RE: problem with String[] [SOLVED]

I had this issue with catching with Visual Age couple of times. I even
restarted Visual age and tried but nothing worked and i got confused
about my code. But when i restarted the machine, things started
working.I moved to WSAD now and here things are in a pretty good shape.

thanks
manoj

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:29 AM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[] [SOLVED]


Its solved, thank god but its very confusing.. I didn't change
anything.. but today it ran.. :) Seems like theres some caching going on
at the server since the updated dynaactionform are not updated with the
latest. I'm using tomcat 4.1.1.27. Is anyone out there having this same
problem? If I'm the only one.. maybe it's some setting issue.. if not
then a bug should be logged

Amin

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I'm using a DynaActionForm.. The code tip is for action form. ( or so I
think )

-Original Message-
From: Nicholson, Robb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with String[]

I think this is what you are asking:
http://www.husted.com/struts/tips/006.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:49 PM
To: Struts Users Mailing List
Subject: Re: problem with String[]


Hi, i really need to get this working. anyone experienced the same
thing?

 Something to note, i have also html:text indexed=true
 name=transactionVO property=transactionId / in the
 logic:iterate/logic:iterate loop

 In the dynaActionForm i have specified paidAmount as String[]. In
jsp,
 html:text indexed=true name=transactionVO property=paidAmount
/
 is used. The html:text is in an logic:iterate/logic:iterate loop.
 Somehow the data doesn't want to move to the dynaactionform.

 What is the best way to do this?

 Thanks in advance
 Amin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional