writing afile

hello;

I want to write a file in my web application

MyApp/ tempdata

String path1 = request.getSession().getServletContext().getRealPath("/");

String path2 = path1 +"\\tempData\\myImage.jpg";

local on home pc works fine

on the server my web hosterone see

files//tempData//myImage.jpg in the rro folder "myApp"

and nothing in tempData

what shoud be the problem

[522 byte] By [the_Orienta] at [2007-11-27 0:20:16]
# 1
Not enough information to provide an answer, sorry.A quick tip: You may want to use File.separator instead of double slashes.Joe
Joe_ha at 2007-7-11 22:13:03 > top of Java-index,Java Essentials,Java Programming...
# 2

String path1 = request.getSession().getServletContext().getRealPath("/");

String path2 = path1 + File.seperator+"tempData"+File.seperator+"myImage.jpg";

the same problem

noching be written in tempData

on see only file\tempData\myImage.jpg

in root folder myApp

the_Orienta at 2007-7-11 22:13:03 > top of Java-index,Java Essentials,Java Programming...
# 3
any help
the_Orienta at 2007-7-11 22:13:03 > top of Java-index,Java Essentials,Java Programming...