Two Laptop Bag
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Very argent file path" Watch "Very argent file path" New topic

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
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
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:
subject: Very argent file path
It's not a secret anymore!