Hello All,
Im c++ guy so new to
jsp and
java.
I need your help on following scenario.
I'm processing one message and generating xml file and storing at some location say some_server/tmp/hello.xml
now as per the requirement,in java im copying that file to my server and im using runtime.exec apis
say 1) cp /some_server/hello.xml /my_server/hello.xml
2) then chaging the mode chmod 777 /my_server/hello.xml
Afterwords I have to show this file in jsp.
point is,step 1 and 2 take some time and it is working fine means copy and change mode too.but in jsp side it is not getting this file..bottom line is jsp is not waiting till the above operation get finish.
I tried all options like....thread.sleep(),since im calling in process.
so i tried process.wait and process.waitFor() but no result.
it is not waiting,
please give me some solution.