Re: Dojo javascript errors with ajax theme. please help
In your web.xml ensure you have a filter-mapping defined for the /struts/...js files. You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: filter-mapping filter-namestruts2Filter/filter-name url-pattern/struts/*/url-pattern /filter-mapping If the request to your struts 2 dojo javascript files do not go thru the Struts 2 filter, you will get 404 error when the browser attempts to retrieve those files. Rubens. -- View this message in context: http://www.nabble.com/Dojo-javascript-errors-with-ajax-theme.-please-help-tp18580332p19850152.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
Those files doesn't exist in the original Dojo source, because dojo looks the files acording to your language preferences, but the en and the en-us are the default. It's normal to have errors with those encodings. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Tue, Jul 22, 2008 at 10:57, Pranav [EMAIL PROTECTED] wrote: Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
Thanks a lot Jermoy! This fixed my issue with ff3. I created a custom dojo build andd disabled struts.widget.StrutsTimePicker. I don't use the DateTimePickers. The svn repo is here: http://svn.dojotoolkit.org/src/tags/release-0.4.0/ regards -- Markus Stauffer On Tuesday 22 July 2008 17.57:15 Pranav wrote: Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-strut s-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
Hi Jerome, I tried this but unfortunately their dojo's svn does not have the release 0.4.0 anymore. I could only get the source code for release 0.4.3 from their download section. Do you think that will work? If not, can you tell me the exact svn location from where I can get the release 0.4.0 of dojo? Thanks Pranav - Original Message From: Pranav [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 8:57:15 AM Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo javascript errors with ajax theme. please help
S2.0.11 uses Dojo 0.4.3. Dave --- On Tue, 7/22/08, Pranav [EMAIL PROTECTED] wrote: From: Pranav [EMAIL PROTECTED] Subject: Re: Dojo javascript errors with ajax theme. please help To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, July 22, 2008, 6:58 PM Hi Jerome, I tried this but unfortunately their dojo's svn does not have the release 0.4.0 anymore. I could only get the source code for release 0.4.3 from their download section. Do you think that will work? If not, can you tell me the exact svn location from where I can get the release 0.4.0 of dojo? Thanks Pranav - Original Message From: Pranav [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 8:57:15 AM Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dojo javascript errors with ajax theme. please help
http://download.dojotoolkit.org/release-0.4.0/ Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Pranav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 4:28 AM To: Struts Users Mailing List Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, I tried this but unfortunately their dojo's svn does not have the release 0.4.0 anymore. I could only get the source code for release 0.4.3 from their download section. Do you think that will work? If not, can you tell me the exact svn location from where I can get the release 0.4.0 of dojo? Thanks Pranav - Original Message From: Pranav [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 8:57:15 AM Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: Hi, I am using s:head theme=ajax/ in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js ../struts/dojo/src/widget/nls/en/TimePicker.js ../struts/dojo/src/widget/nls/en-us/TimePicker.js ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. Thanks Pranav In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts -20x.html Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]