The directory structure of my current application is some thing like this,
JSP pages need some images that are in images folder and .js file that are in js folder.Code:WebApp |-jsp |-js |-images |-WEB-INF |- classes |- lib
Problem is I am not able to access any of them using /images/some.gif and /js/cal.js
Reference like this works on dev, but not on QA. QA environment is different from Dev. It have one proxy which redirects requests to either one of 2 servers.
In dev, it is like both client and server are on same machine.
I am not sure if this is something to do with view resolvers configured in xx-servlet.xml file.
Can some one please help me to understand so that I can get access to images and .js file from my jsp file in QA aswell.Code:<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass"> <value>org.springframework.web.servlet.view.JstlView</value> </property> <property name="prefix"> <value>/jsp/</value> </property> <property name="suffix"> <value>.jsp</value> </property> </bean>


Reply With Quote