Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: JSP & IO


Message #1 by terry_513@r... on Fri, 11 May 2001 08:43:05
Hi, 

   I have a bean that writes & reads objects stored in a flat file. I need 
to store/retrieve objects fro mthat file using the bean dynamically at run 
time. If I use normal java file & write & read static objs, it works 
perfect. But the same code when I add to a JSP page, it will write 
dynamically but for reading it will read just first record & then it 
throws StreamCorruptedException. I need to store login Info in this flat 
file & retrieve often. How d oi overcome this problem. The same functions 
are sued of the bean by JSP & normal java code. It can retrieve objs if 
stored normally. If i try to store objs dynamically at run time, it will 
store without any exceps. but will read just first obj & throw 
StreamCorruptedException.

 Can anyone please focus light on this problem. Please write to me at 
terry_513@r...


Thanks in advance.

Trupti

  Return to Index