>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