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();
}
我收到警报,但我的项目从未找到位于 WebContent 根目录中的 calendar.jsp?有人可以帮帮我吗?我也在尝试加载图像
src="/images/cal.bmp"
哪个在 WebContent/images 中,但也没有找到?