Hi Guys,
I want to upload a file from client to server
i m using tomcat server..
if i need to upload a file I need t give path like this in
FileOutputStream fos = new FileOutputStream(new File("../webapps/examples/bhi/demos/"+file_to_upload));
my JSPs are in bhi folder. I have one more folder demos in bhi, i want to upload files into that..
by above i can upload the file..
but now if I switch to weblogic server.. this above "../webapps/examples/bhi/demos/" will not work..
in weblogic i hv put my JSPs in weblogic/myserver/public_html/bhi.., hence works
now please tell me, what path i shud write that my file get uploaded in right folder under, where my JSPs are..., which ever Server I choose
i hope u understand my problem, please give me the solution.. for independent of server
Thanks in anticipation.
Sunil Bansal
[ June 04, 2003: Message edited by: Sunil K Bansal ]
I want to upload a file from client to server
i m using tomcat server..
if i need to upload a file I need t give path like this in
FileOutputStream fos = new FileOutputStream(new File("../webapps/examples/bhi/demos/"+file_to_upload));
my JSPs are in bhi folder. I have one more folder demos in bhi, i want to upload files into that..
by above i can upload the file..
but now if I switch to weblogic server.. this above "../webapps/examples/bhi/demos/" will not work..
in weblogic i hv put my JSPs in weblogic/myserver/public_html/bhi.., hence works
now please tell me, what path i shud write that my file get uploaded in right folder under, where my JSPs are..., which ever Server I choose
i hope u understand my problem, please give me the solution.. for independent of server
Thanks in anticipation.
Sunil Bansal
[ June 04, 2003: Message edited by: Sunil K Bansal ]