Hi All,
I am not sure if this question has to be posted in this forum or in JSP/
struts forum.
You can move this question to the right forum.
In my application there is a Load functionality where when user uploads a file, system should read the file and store data against the user who uploaded the file into the database.
Requirement seems to be very simple.
In Current implementation, UI is based on Struts and data is inserted into database by calling a webservice. When user uploads a file, in the action class, a call to webservice is made to insert data into the database. Struts FormFile is used here.
Note: The instance of the formFile is not reset to null in reset method of the form class. I am not sure if this is causing any problems.
Current code works fine when user uploads one file. But when he tries to login into two browers and try to upload two different files, the partial data from upload request from one browser (which is initiated first) is stored and then error message is thrown to the user. upload request from other browser is never started and again it throws error back to the user.
Error Message in both the cases is:
HTTP ERROR: 500 Internal Server Error
I am not sure how webservice works. I mean if method call on webservice is synchronized. The documentation does not talk anything about the synchronized blocks and I can see that method signatures are not synchronized.
How such scenario should be handled? If I want to redesign my application in such a way to remove this limitation?
Your suggestions would be a great help to me.
Thank you
[ December 22, 2005: Message edited by: s penumudi ]