A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Application Frameworks
Joined: Nov 17, 2004
May 06, 2005 13:25:00
I am trying to understand how context root path is resolved.
The directory structure of my current application is some thing like this,
WebApp |-jsp |-js |-images |-WEB-INF |- classes |- lib
pages need some images that are in images folder and .js file that are in js folder.
Problem is I am not able to access aby of them using /images/some.gif and /js/cal.js
Reference like this works on dev, but not on QA. Ofcourse 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-servelt.xml file.
<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>
Can some one please help me to understand so that I am able to get access to images and .js file from my jsp file in QA aswell.
I agree. Here's the link:
subject: Directory Structure
Unable to start Jboss 5.1.0 GA
Spring and Multiple View Resolvers
urgent help please (creating jar file using ant)
Inclue file in lucene search
JSF view path
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014