I have an application which can upload pictures.
When I use the upload with Jetty in my Eclipse directory it stores all
pictures under
eclipseproject
/images
/src/main/webapp/images
But if i want to display them with ContextRelativeResource then they must be
in /src/main/webapp/images
Upload command is
Folder uploadFolder = new Folder("opdrachten/"+input.getOpdrachtnummer(),
"");
for display i use
String picture =
"opdrachten/"+opdracht.getOpdrachtnummer()+"/"+file.getName();
logger.info(picture);
Image image2 = new Image("image2",new
ContextRelativeResource(picture));
What is wrong?>
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Different-root-between-upload-folder-and-ContextRelativeResource-tp4655089.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]