Is it possible to develop an application where i could upload a file from my local machine to desired destination on server, the operating system on which i am running is linux. Right now i am developing my applications as tomcat user, so if i got to browse and select source file and destination directory, how should i get the parameters and proceed, I could able to upload a file to prespecified destination and it is working fine.. and i used jason hunter classes for this.
Any help or guidance from you is appreciated
-
Is it possible for an client to access server dir?? reply asap (3 messages)
- Posted by: Sravanthi Reddy
- Posted on: March 28 2005 13:33 EST
Threaded Messages (3)
- Is it possible for an client to access server dir?? reply asap by Anil Kumar Sadineni on March 28 2005 19:52 EST
- thanks by Sravanthi Reddy on March 29 2005 22:03 EST
- Keep the servlet classes and JSP pages separately by Anil Kumar Sadineni on March 30 2005 01:55 EST
- thanks by Sravanthi Reddy on March 29 2005 22:03 EST
-
Is it possible for an client to access server dir?? reply asap[ Go to top ]
- Posted by: Anil Kumar Sadineni
- Posted on: March 28 2005 19:52 EST
- in response to Sravanthi Reddy
Hi,
It is not possible to browse the server's directory from clien's machine. The alternative solution is defining the destination path at server dynamically based upon logged in user or based upon the uploaded file (as per requirements).
Anil Sadineni. -
thanks[ Go to top ]
- Posted by: Sravanthi Reddy
- Posted on: March 29 2005 22:03 EST
- in response to Anil Kumar Sadineni
thx anil.. one more question.. if i got to develop an application is it that all servlets/jsp files to be in one directory in web-inf/classes or jsp in public_html and servlets in classes.. is either way fine or which one is better.
Thanks
Sravanthi -
Keep the servlet classes and JSP pages separately[ Go to top ]
- Posted by: Anil Kumar Sadineni
- Posted on: March 30 2005 13:55 EST
- in response to Sravanthi Reddy
Sravanthi,
Best way is to keep the jsp pages outside WEB-INF directory unless you need to to restrict user from accessing the jsp pages direct. As per spec, keep your servlet classes in <WEB-INF/classes> and jsps outside the WEB-INF directory.
Anil Sadineni.