| Author |
jsp only run correctly once
|
Michelle Lee
Ranch Hand
Joined: Jan 23, 2002
Posts: 42
|
|
Hi java experts: I meet a triky problem. I have a jsp pages which read from database and then show those data in a form. This jsp file only run correct the first time after adding even one more space or change configuration, in the consequence visit it showing nothing. I am using mysql and the driver is org.gjt.mm.mysql.Driver. in the souce code it used sun.jdbc.rowset.CachedRowSet. Any body have a rough idea what is wrong? I would appreciate your help. [ January 22, 2003: Message edited by: michelle Lee ]
|
Michelle
|
 |
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
|
|
If it only runs once, I'd guess you are using an instance variable in your JSP and it is maintaining its state and failing on the second hit. Can you paste the first 10 or so line of your JSP?
|
[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
|
 |
Mark Howard
Ranch Hand
Joined: Feb 14, 2001
Posts: 285
|
|
Hi Michelle Your code is conforming perfectly to the "write anywhere, run once" theory Just kidding. Yep, some source code might help us identify your problem better.
|
 |
Michelle Lee
Ranch Hand
Joined: Jan 23, 2002
Posts: 42
|
|
Yep, I know without source code, it is hard to identify the problem. But I am tring extropia's open source code: webcal. There are bunches of source code, I don't know which part is wrong. It runs very well with oracle before, don't know to wrong now. It is painful if you want to debug some code which you don't understand. Mei [ January 22, 2003: Message edited by: michelle Lee ]
|
 |
 |
|
|
subject: jsp only run correctly once
|
|
|