From: François-Xavier B. <fra...@ce...> - 2012-03-08 12:46:07
|
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... 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... > https://lists.sourceforge.net/lists/listinfo/webassembletool-users |