I have already changed my classpath to include cos.jar. But still it doesnt work. So, what i did was put a copy of the jar file into all possible directories..i have put it in TOMCAT\...\web-inf\lib and C:\Program Files\Java\jdk1.5.0_01\bin directories.
Aside from this i have already compiled the UploadFile servlet so i already have the UploadFile class located in TOMCAT\..\web-inf\classes\test directory.. I have the HTML file in the root directory so i am calling the UploadFile class using this code..
<FORM ACTION="../servlet/test.UploadFile" METHOD=POST ENCTYPE="multipart/form-data"> What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR> Which file to upload? <INPUT TYPE=FILE NAME=file1> <BR> <INPUT TYPE=SUBMIT> </FORM>
I've been trying to figure this out for days now and i'm surely getting a bit desperate as days pass by.
I hope somebody can shed some light into this problem..
thanks a lot!
Post by:Annie Smith
, Ranch Hand
Your class should have a statement
on the first line. Then the class should be under WEB-INF/classes/test. That should work!
Post by:Renee de Castro
I feel so stupid right now! hehehe
Thanks for the help! It really means a lot!
This thread has been viewed 1294 times.
All times above are in ranch (not your local) time.
The current ranch time is Sep 20, 2018 18:18:45.