Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Problem with accessing JavaBean based database connection


Message #1 by cathylou@v... on Tue, 12 Dec 2000 18:28:51 -0000
It is an issue of thread. Make sure to complete the transaction in a 
single thread. Also try to use variables in jsp file as less as you can. 
Make sure, you commit after updating the database.

-Khalil



cathylou@v... wrote ..
> Hi,
> 
> This is a weird one.  I hope someone can help.  I am using Weblogic 4.51
> application server, and am using direct database access via a java bean
> that implements java jdbc.  Everything is fine except for the following
> scenario:
> 
> I have two java wrapper classes that access the same general use bean.
> In one browser I change the values associated with both the wrapper
> classes using jsp pages, and I see the changes in the database.
> In the second browser, I refresh the jsp page associated with one of the
> wrapper classes and I see the new data.  However, when I refresh the page
> associated with the other wrapper class, the old data remains!
> 
> The correct behaviour is for the data to change.
> 
> I have diffed the wrapper classes and the jsp code, and they seem
> identical except for the name of the wrapper class.
> 
> Does anyone have any clues about where to start looking?  Thanks.


--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_jsp as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_jsp-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index