Stupid JSP question (for the Beeeny one probably)

For quick answers to quick questions on whatever subject you need!

Moderator: Thought Police

Locked
heavy-rotation
Thought Police
Thought Police
Posts: 1205
Joined: Thu Mar 14, 2002 12:11 pm
Location: Macclesfield
Contact:

Stupid JSP question (for the Beeeny one probably)

Post by heavy-rotation »

How would I get the current local directory (or file) path?

I can do it by URI, but thats not what I'm after really. If I try File (".") it seems to give me the %SYSTEMROOT% directory atm.

Ta!

Oh, and is there an easy way of sorting String[]s but while ignoring upper/lower case?
DaBeeeenster
Beta-Mandarin
Beta-Mandarin
Posts: 893
Joined: Thu Sep 12, 2002 10:45 am
Location: Bondi Beach, Sydney ;)
Contact:

Post by DaBeeeenster »

getServletContext().getRealPath("/");

Are you fiddling with that god darn file system again bwoy!
Image
"All our beliefs are being challenged now, and rightfully so. They're stupid." - Bill Hicks
My Travels Blog
heavy-rotation
Thought Police
Thought Police
Posts: 1205
Joined: Thu Mar 14, 2002 12:11 pm
Location: Macclesfield
Contact:

Post by heavy-rotation »

Danke

I am indeed ;). Thought it might be easier to try and convert something I've written in another language, rather than start something new from scratch. :)
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Post by Kajun »

Ah, heavy-trojan.
Kajun is awaiting approval.
heavy-rotation
Thought Police
Thought Police
Posts: 1205
Joined: Thu Mar 14, 2002 12:11 pm
Location: Macclesfield
Contact:

Post by heavy-rotation »

:bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg:
:bg::bg::lol::bg::bg::bg::bg::bg::bg::bg::lol::lol::lol::lol::lol::lol::lol::bg::bg::lol::bg::bg::bg::bg::bg::bg::bg:
:bg::bg::lol::bg::bg::bg::bg::bg::bg::bg::lol::bg::bg::bg::bg::bg::lol::bg::bg::lol::bg::bg::bg::bg::bg::bg::bg:
:bg::bg::lol::bg::bg::bg::bg::bg::bg::bg::lol::bg::bg::bg::bg::bg::lol::bg::bg::lol::bg::bg::bg::bg::bg::bg::bg:
:bg::bg::lol::bg::bg::bg::bg::bg::bg::bg::lol::bg::bg::bg::bg::bg::lol::bg::bg::lol::bg::bg::bg::bg::bg::bg::bg:
:bg::bg::lol::lol::lol::lol::lol::lol::bg::bg::lol::lol::lol::lol::lol::lol::lol::bg::bg::lol::lol::lol::lol::lol::lol::bg::bg:
:bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg::bg:
:lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol:
:lol::lol::bg::lol::lol::lol::lol::lol::lol::lol::bg::bg::bg::bg::bg::bg::bg::lol::lol::bg::lol::lol::lol::lol::lol::lol::lol:
:lol::lol::bg::lol::lol::lol::lol::lol::lol::lol::bg::lol::lol::lol::lol::lol::bg::lol::lol::bg::lol::lol::lol::lol::lol::lol::lol:
:lol::lol::bg::lol::lol::lol::lol::lol::lol::lol::bg::lol::lol::lol::lol::lol::bg::lol::lol::bg::lol::lol::lol::lol::lol::lol::lol:
:lol::lol::bg::lol::lol::lol::lol::lol::lol::lol::bg::lol::lol::lol::lol::lol::bg::lol::lol::bg::lol::lol::lol::lol::lol::lol::lol:
:lol::lol::bg::bg::bg::bg::bg::bg::lol::lol::bg::bg::bg::bg::bg::bg::bg::lol::lol::bg::bg::bg::bg::bg::bg::lol::lol:
:lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol:
Locked