From: Nicolas R. <nic...@gm...> - 2012-03-08 13:53:02
|
Hi Victor, Did you try using fixMode=absolute ? The following settings are available (from http://sourceforge.net/apps/mantisbt/webassembletool/view.php?id=8) : New configuration options : (optional) fixResources = true / false (optional) fixMode = absolute / relative (optional) visibleUrlBase = base url used in fix process (not the one used when retrieving content). fixMode = absolute should rewrite the url including the server and port parts visibleUrlBase : allows to use a custom url base (when using internal-only urls). I checked the site, and did not find this in the documentation. Feel free to send a patch or update the wiki. -- Nicolas Le 7 mars 2012 à 13:45, web...@li... a écrit : > > Date: Wed, 7 Mar 2012 11:57:40 +0100 > From: Victor Montaner <vic...@ze...> > Subject: [Webassembletool-users] Problem declaring resources in a > template used by webassembletool > To: web...@li... > Message-ID: > <CAN...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > 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 > |