File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Very argent file path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Very argent file path" Watch "Very argent file path" New topic
Author

Very argent file path

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,

I have this site that save images to the server. To do this I use some thing close to
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(n));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
Where n is the full path (the absolute path or the path of the file on the hard disk) of the file
Ex:-
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\test\videos\anjana

Now what I want to know is how I can find out this path
If I have my file in
http://192.168.101.9:8080/test/chatLogin.jsp
What I want is the path of this chatLogin.jsp file in the hard disc.

I need some program that can get me this path

With refereeing to chatLodin.jsp file the I need some program (a JSP file or an a Servlet) that will give the following result
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\test\chatLogin.jsp

Thank You

Sameera Abeysinghe
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Check this thread


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Very argent file path
 
Similar Threads
Tomcat 5.5 manual deployment
where i need to place my java bean file in the tomcat
File Creation In a webapp
please help! classpath not working
Configuring JSPWiki