Hello All,
I have a JSP page and when i click on the SUBMIT button in the page, it takes me to an index.html file. Currently on this html file, I have a button called "Browse" and i click on it and choose a file and when i submit it(this does some calculations and gives an o/p).
HOWEVER, instead of choosing a file by clicking on "BROWSE" i need to do it automatically. i.e i have a text file stored in some location and i want this file to be included automatically instead of clicking on browse. and when i click on submit on that index file, it should make use of this text file and do the calculations.
How do i do it? can someone give me a sample JSP code?
THANKS!
--KC.
I have a JSP page and when i click on the SUBMIT button in the page, it takes me to an index.html file. Currently on this html file, I have a button called "Browse" and i click on it and choose a file and when i submit it(this does some calculations and gives an o/p).
HOWEVER, instead of choosing a file by clicking on "BROWSE" i need to do it automatically. i.e i have a text file stored in some location and i want this file to be included automatically instead of clicking on browse. and when i click on submit on that index file, it should make use of this text file and do the calculations.
How do i do it? can someone give me a sample JSP code?
THANKS!
--KC.