Onur Idrisoglu wrote:
Cédric,
thanks, i read the mail archive, maybe copying all javascript files to
the struts folder would help, but i dont wanna do that...
Actually it was working in my own tomcat application, but i deployed
it to a shared tomcat, and now js files cannot be found...
If i could change a parameter and tell struts to look at x folder
instead of struts, it would help..
I dunno..

In your shared installation, it's possible that apache is in front of tomcat and is setup to apache serve the javascript files instead of tomcat.

In struts 2.0.x, if struts 2 is serving the static files from the jar they must be located in /struts/

If you wish to serve them from somewhere else you can do so by:
[1] setting the baseRelativePath attribute of the head tag so a different value; or [2] change the template of the head tag to provide different settings to dojo.

You will need to ensure the scripts are available at the alternate path.

The performance improvement by serving static files from apache instead of tomcat is significant.

[1] http://struts.apache.org/2.0.11.1/docs/dojo-head.html
[2] http://struts.apache.org/2.0.11.1/docs/themes-and-templates.html


Hope that helps,
Jeromy Evans

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to