webApp.uploadButtons.inc Maven / Gradle / Ivy
The newest version!
$attribute{needUpload});
if (${needUpload}){
uploadFileToTempDir(file="#{uploadedFile}" uploadedTempFile=>$attribute{filePath}, origPath=>$attribute{origPath});
}
if (! ${needUpload}){
setAttribute(key="origPath", value="#{dirPath}");
setAttribute(key="filePath", value="#{dirPath}");
}
deploy(filePath="$attribute{filePath}"
origPath="$attribute{origPath}"
appName="#{appName}"
VS="#{selectedVS}"
ctxtRoot="#{ctxtRoot}"
enabled="#{enabled}"
precompileJSP="#{precompile}"
libraries="#{library}"
description="#{description}"
targets="#{selectedTargets}"
);
redirect(page="#{request.contextPath}/web/webApp/webApplications.jsf?alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}&name=$pageSession{target}");
/>