-
14 Nov 2012 4:40 AM #1
Unanswered: MVC with spring problem
Unanswered: MVC with spring problem
Hi,
I write a user management with extjs4.1.1 and spring3 mvc
and my extjs dir like pic 1;
when i click login from index.html will request login/login.html
and return test.jsp
but the ext loader will add "login" in url
if I visit test.jsp direct there is no problem
I can't find where is wrong?anyone could help me?thanks
pic 1
1.jpg
pic 2
2.jpg
pic 3
3.jpg
pic 4
4.jpg
-
14 Nov 2012 4:49 AM #2Ext JS Premium Member
- Join Date
- Apr 2008
- Location
- Groningen - Netherlands
- Posts
- 1,034
- Vote Rating
- 27
- Answers
- 77
Try to set the namespace of you application in the Loader
Code:Ext.Loader.setPath('app', '..');
-
16 Nov 2012 6:30 PM #3
-
16 Nov 2012 7:28 PM #4
I set "appFolder:'/projectName/app'" it can be work,but how to make it work without add projectName ?
-
20 Nov 2012 11:55 AM #5
Hi Leon,
I attached a zip with my setup, hope this helps you.
-
14 Feb 2013 8:54 AM #6
How did you solve this problem. I am currently working on web desktop of extjs 4.1.1 with below code using spring 3
Ext.Loader.setPath({
'Ext.ux.desktop': './js/extjs4.1.1a/desktop/js/',
MyDesktop: ''
});
Ext.require('MyDesktop.App');
var myDesktopApp;
Ext.onReady(function () {
myDesktopApp = new MyDesktop.App();
});
I am getting error
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/SSPA/desktop/App.js] in DispatcherServlet with name 'appServlet'
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/SSPA/images/powered-by-ext-js.png] in DispatcherServlet with name 'appServlet'
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/scripts/extjs4.1.1a/resources/css/ext-all.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/extjs4.1.1a/ext-all-debug.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/styles/desktop.css">
Any idea, how can the Ext.Loader.setPath can get proper path of web desktop js and css files?Last edited by jitesh_biswal; 14 Feb 2013 at 8:59 AM. Reason: full description of the problem


Reply With Quote