upload file in jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolminded
    New Member
    • Mar 2007
    • 137

    upload file in jsp

    hi all,
    i have uploaded files in jsp on a single form quite comfortably and it works well too.
    but now i got one problem. my problem is:

    i have a form where i displayed the id, name of employee in each row. now i want to browse CV for each employee and add it in the database. i put one browse button on each row and browsed the file, but i couldn't save that. i have used each row as a form and placed a button on each row. when i click on that button, i want the particular row be updated with the CV path i have browsed.

    thank you.
    tia
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    A few years ago I have done exactly the same to update employee-profiles and it worked. But without seeing your code, I can't examine what you did differently.

    All what i can say is that if you submitted the employee-id and changed data of your form to the server and saved it there and also verified that it is stored in the database and then fetched from the database again to show the changes, then it must be a caching issue.
    Possible problems:
    - Are you using cached database queries and forgot to update?
    - Did you forget to refresh your web-page?
    - Did you not put a content-no-cache meta tag on your webpage and using a proxy server?
    - Do you have an empty try-catch staement around you DB-saving code?
    - Did you forgot to compile your jsp-page and still using an old class?

    So you see, it's a guessing game until you come up with more info. (the html-form, the jsp-page and java-action classes that save/load from DB)

    Comment

    Working...