• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Mutiple File Uploading

Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
It's just a flesh wound! Or a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic