You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Scott Nesbitt <sc...@yahoo.com> on 2009/09/17 19:03:02 UTC
Dojo trouble after upgrade
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo files.
Before upgrade:
<script type="text/javascript"
src="../struts/simple/dojoRequire.js"></script>
After upgrade:
<script
language="JavaScript" type="text/javascript"
src="/myApp/struts/ajax/dojoRequire.js"></script>
Somehow "/myApp" is getting inserted into thepath instead of ".."
Anybody know of how this replacement happens? Is there a way to make it use the relative pathing?
Thanks for any tips or pointers.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Dojo trouble after upgrade
Posted by Scott Nesbitt <sc...@yahoo.com>.
Yes, I have read the Struts 2 Wiki and the migration guide. I still have a problem where non-Dojo request are done like this:
GET /appPrefix/myApp/html/yui/calendar-min.js HTTP/1.1
And Dojo requests are done like this:
GET /myApp/struts/dojo/dojo.js.uncompressed.js HTTP/1.1
Somehow the appPrefix is not getting sent with the Dojo GETs. With Struts 2.0.6 this was not a problem, and I was wondering if it is due to with a pathing change.
Scott
----- Original Message ----
From: Struts Two <st...@yahoo.ca>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Thursday, September 17, 2009 2:27:47 PM
Subject: Re: Dojo trouble after upgrade
Dojo has been moved to a plugin in struts 2.1. There are more information on this on the struts 2 wiki site.
You are much better of using dojo natively than the plugin [which you can call it an old hag now :) ]
--- On Thu, 9/17/09, Scott Nesbitt <sc...@yahoo.com> wrote:
> From: Scott Nesbitt <sc...@yahoo.com>
> Subject: Dojo trouble after upgrade
> To: user@struts.apache.org
> Received: Thursday, September 17, 2009, 5:03 PM
>
> I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing
> trouble with Dojo files.
>
> Before upgrade:
>
> <script type="text/javascript"
> src="../struts/simple/dojoRequire.js"></script>
>
> After upgrade:
>
> <script
> language="JavaScript" type="text/javascript"
> src="/myApp/struts/ajax/dojoRequire.js"></script>
>
>
> Somehow "/myApp" is getting inserted into thepath instead
> of ".."
>
> Anybody know of how this replacement happens? Is
> there a way to make it use the relative pathing?
>
> Thanks for any tips or pointers.
>
> Scott
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Dojo trouble after upgrade
Posted by Struts Two <st...@yahoo.ca>.
Dojo has been moved to a plugin in struts 2.1. There are more information on this on the struts 2 wiki site.
You are much better of using dojo natively than the plugin [which you can call it an old hag now :) ]
--- On Thu, 9/17/09, Scott Nesbitt <sc...@yahoo.com> wrote:
> From: Scott Nesbitt <sc...@yahoo.com>
> Subject: Dojo trouble after upgrade
> To: user@struts.apache.org
> Received: Thursday, September 17, 2009, 5:03 PM
>
> I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing
> trouble with Dojo files.
>
> Before upgrade:
>
> <script type="text/javascript"
> src="../struts/simple/dojoRequire.js"></script>
>
> After upgrade:
>
> <script
> language="JavaScript" type="text/javascript"
> src="/myApp/struts/ajax/dojoRequire.js"></script>
>
>
> Somehow "/myApp" is getting inserted into thepath instead
> of ".."
>
> Anybody know of how this replacement happens? Is
> there a way to make it use the relative pathing?
>
> Thanks for any tips or pointers.
>
> Scott
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org