From: François-Xavier B. <fra...@ce...> - 2012-03-08 14:38:43
|
This already existed in version 2.14 Can you try with *fixmode=absolute* It looks to be the right syntax. Le 08/03/2012 15:25, vic...@ze... a écrit : > Hello, > > Thanks for your reply. Unfortunately, this does not change the way the > url is rendered. > Maybe this is has been implemented in a newer version ? I'm using > webassembletool-core-2.14.jar > > Regards, > > Victor MONTANER > > On Thu, Mar 8, 2012 at 1:45 PM, François-Xavier Bonnet > <fra...@ce... > <mailto:fra...@ce...>> wrote: > > Hello, > > Resource URL fixing uses 3 parameters: > > * fixResources (true|false, default false) > * fixMode (0,1 default value 1 = relative, 0 = absolute) > * visibleBaseURL (this parameter enables to force the > baseURL to a value different form the baseUrl of this provider) > > Unfortunately I think the developer forgot to update the > documentation but you can find some explanations in the javadoc > http://www.esigate.org/apidocs/net/webassembletool/renderers/ResourceFixupRenderer.html > > In your case I think your need to set fixResources=true and > *fixMode=0* > > I opened a ticket on Mantis to remember to update the xdoc > https://sourceforge.net/apps/mantisbt/webassembletool/view.php?id=78 > > Regards, > > Francois-Xavier Bonnet > > Le 07/03/2012 11:57, vic...@ze... > <mailto:vic...@ze...> a écrit : >> Hello, >> >> Here's my problem: >> I have an mock application (jsp), providing templates. This >> application runs on (http://localhost:8081/mock-application). >> >> Another application, uses WAT, and uses the first one as a template. >> >> The problem concerns the static resources in the template >> application. >> This template returns : >> <link rel="StyleSheet" type="text/css" >> href="../styles/somestyle.css"> >> >> Obviously, this url is not valid when WAT assembles the template >> and the application. >> using "fixResources=true" in the driver.properties file, >> webassembletool transforms the url into : >> "<link rel="StyleSheet" type="text/css" >> href="/mock-application/../styles/somestyle.css">" >> >> This would work if the "mock-application" and the main >> application were running on the same server, and the same port, >> but since the mock-application is running on a tomcat on port >> 8081, this won't work. >> >> I tried a lot of parameters in the driver.properties file, but I >> can't make it keep the absolute url. >> >> I'd like to set this up (for now) without using url rewriting and >> having to run an Apache server. >> >> Do you have an idea ? >> Thank you for your help, >> >> Victor MONTANER >> >> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> _______________________________________________ >> Webassembletool-users mailing list >> Web...@li... <mailto:Web...@li...> >> https://lists.sourceforge.net/lists/listinfo/webassembletool-users > > |