I have a javascript and images that would be simpler to access via the RESOURCES servlet.
But I cant find any "how to" or example documentation - can someone point me to that?
My apologies to those who responded - non of the answers seem to have anything to do with my question, so my question must be very badly written. I will try again
In my current jsp I have
dojo.require("dojo.parser"); dojo.require("dijit.layout.ContentPane"); dojo.require("dijit.layout.TabContainer"); dojo.require("dijit.layout.AccordionContainer");and this is working - I understand it is getting the Dojo js from org.springframework.js-2.3.0.RELEASE.jar?
and this is enabled by the
<servlet>
<description>generated-resources-servlet</description>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>
org.springframework.js.resource.ResourceServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
in web.xml
Now I want to use a dojox chart, which requires
dojo.require("dojox.charting.widget.Chart2D"); dojo.require("dojox.charting.themes.Claro");and these are not being found.
So I want to learn how to manage set up and access of things like .js and images as is done for
, e.g. Spring.js
I have seen the documentation at http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-static-resources but would really like to see some examples.
Hope this makes sense.