This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp only run correctly once  RSS feed

 
Michelle Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mark Howard
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!