struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Nesbitt <scottnesb...@yahoo.com>
Subject Re: Dojo trouble after upgrade
Date Mon, 21 Sep 2009 17:14:27 GMT

I had to change the JSP file from this:

<sx:head/>

to this

<sx:head 
baseRelativePath="../struts/dojo"/>

I think this is either a bug or an undocumented change to the 2.1 upgrade process, but I am
happy it is working.

Scott



----- Original Message ----
From: Scott Nesbitt <scottnesbitt@yahoo.com>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Thursday, September 17, 2009 2:56:56 PM
Subject: Re: Dojo trouble after upgrade


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 <strutstwo@yahoo.ca>
To: Struts Users Mailing List <user@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 <scottnesbitt@yahoo.com> wrote:

> From: Scott Nesbitt <scottnesbitt@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


Mime
View raw message