You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Howard <ch...@asgna.com> on 2000/05/08 17:39:23 UTC
Running on NT vs Unix - How to tell
Is there a way I can tell what platform Tomcat is running on. I'm having to
build directory structures based on where the JSP is running from and I need
to know weather to use "\" or "/" and weather I need a drive specified "C:",
"D:" etc....
Thanks
Chris
Re: Running on NT vs Unix - How to tell
Posted by Steve Weiss <sw...@aamc.org>.
I'm not sure off the top of my head about the OS, but as far as "/" vs
"\", see the docs for java.io.File. It has path separator static member
variables that you can (should) use for platform independance.
-Steve
Chris Howard wrote:
>
> Is there a way I can tell what platform Tomcat is running on. I'm having to
> build directory structures based on where the JSP is running from and I need
> to know weather to use "\" or "/" and weather I need a drive specified "C:",
> "D:" etc....
>
> Thanks
> Chris
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
--
Steve Weiss Association of American Medical Colleges
(202)828-0428 mailto:sweiss@aamc.org http://www.aamc.org