how to make JSP page interactive....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhishek92
    New Member
    • Jul 2007
    • 9

    #1

    how to make JSP page interactive....

    I have written a code for file upload...
    Now here is a problem...
    Before file is uploaded it checks whether the file with that name already exists..
    If it is so then it should ask the user whether to overwrite it or not..
    how can this be done in JSP..
    Simple is there any way I can ask him for a yes or no and then on the basis of this answer I can go ahead with the processing ....
  • mailanusha
    New Member
    • Jun 2007
    • 6

    #2
    Originally posted by abhishek92
    I have written a code for file upload...
    Now here is a problem...
    Before file is uploaded it checks whether the file with that name already exists..
    If it is so then it should ask the user whether to overwrite it or not..
    how can this be done in JSP..
    Simple is there any way I can ask him for a yes or no and then on the basis of this answer I can go ahead with the processing ....


    If u r storing the names of all uploaded files in your DB then u can query the DB and check if that name already exists,set a attribute if it does in your backend itself ,and on your JSP you can check if that attribute is set or not.

    Comment

    Working...