Home:ALL Converter>Spring WebFlow, I cant find path to files outside my flow?

Spring WebFlow, I cant find path to files outside my flow?

Ask Time:2012-09-04T22:45:46         Author:Johnathan Smith

Json Formatter

Spring WebFlow, I cant find path to files outside my flow?

I am working on a Spring Webflow2 project and sometimes I have to access JavaScript and Image files that are not in my flow. I cant find the right path to put into my JSP page.

Example:

This is in my JSP that is in the flow:

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();
}

I get the alert but my project never finds calendar.jsp which is in the root of WebContent? can someone please help me out. I am also trying to load a image

src="/images/cal.bmp"

which is in WebContent/images but it is also not getting found?

Author:Johnathan Smith,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12265984/spring-webflow-i-cant-find-path-to-files-outside-my-flow
yy