Chuck,
I feel so stoooooopid. That was it. I was looking for something
more compicated!
xxxoooxxx
T.K.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED] On Behalf Of
Chuck Hirstius
Sent: Monday, July 21, 2003 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Path Question for Linux versus Windows
>I have a line of code that looks like this:
>out.println("<br>ImageWWW = " + "<img src='" + serverPath2image +
> myUpload.getFiles().getFile(i).getFileName() + "'
alt='Images'>");
>
>It returns a string that looks like the one below, which works on Linux
but not Windows
>http:myIPAddress/upload/uploads/UniqueDateId/images/bird.gif
>
>Of course if I change the forward slashes to a back slash it works on
windows
>http:myIPAddress\upload\uploads\UniqueDateId\images\bird.gif
>
>How can I get the string to work on Linux and Windows browsers?
>
>Thanks in advance!
>
>T.K.
This may not be it but shouldn't it be http://myIPAddress/foo/bar/
Note the '//' after the 'http:'
Maybe you just left that out on accident, but that's something that
strikes me right off the bat as something that might cause problems.
There
should be no difference in URL handling between windows and linux
browsers
in the case of "http" based URLS - if you try to generate filesystem
based
URL's you'll need to deal with them differently.
________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html