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]

Reply via email to