0
Spring WebFlow,我無法找到我的流程之外的文件路徑?Spring WebFlow,我無法找到我的流程之外的文件路徑?
我正在開發Spring Webflow2項目,有時我必須訪問不在我的流程中的JavaScript和圖像文件。我無法找到正確的路徑放入我的JSP頁面。
例子:
這是我的JSP是在流動:
function ShowCalendar(CONTROL,START_YEAR,END_YEAR,FORMAT){
alert("Loading Calendar js/HTMLCalendar.jsp");
ControlToSet = eval(CONTROL);
StartYear = START_YEAR;
EndYear = END_YEAR;
FormatAs = FORMAT;
var strFeatures = "width=" + CalWidth + ",height=140" + ",left=" + LEFT + ",top=" + TOP;
var CalWindow = window.open("../calendar.jsp","Calendar", strFeatures)
CalWindow.focus();
}
我得到的警報,但我的計劃從未認定calendar.jsp這是在的WebContent的根源在哪裏?有人可以幫助我。我也嘗試加載圖像
SRC =「/圖片/ cal.bmp」
這是在的WebContent /圖像,但它也沒有得到發現?
這取決於您的網絡和調度程序的編寫方式。例如我使用資源調度程序,它允許我訪問vi /resources/image.jpg圖像 – rptmat57