dimanche 21 décembre 2014

Running Extjs5 in a webapp with a different root dir

Hi @ll,

I am still quite new to ExtJs5 and have a question for the running of ExtJs in a webapp:


In my webapp configuration, I am working with Spring MVC. My start controller is available under /index and has the view /WEB-INF/jsp/index.jsp


Moreover I am using Sencha CMD and have generated the ExtJs application under my webapp directory /web, with bootstrap.js, app.js and all the other stuff.


So my index.jsp is therefore looking like:


...

<script id="microloader" type="text/javascript" src="web/bootstrap.js"></script>


But now I am getting into trouble because everything other like bootstrap.css is not lying under localhost:8080/bootstrap.css, but under localhost:8080/web/bootstrap.css


So how can I handle this problem? It has to deal with some configuration, but as rookie I do not know what and where is something to do.


Please help!






Running Extjs5 in a webapp with a different root dir

Aucun commentaire:

Enregistrer un commentaire