From: François-Xavier B. <fra...@ce...> - 2012-03-08 14:01:43
|
Hi Nicolas, I just created a Mantis ticket in order to update the documentation. This feature is very useful and should be documented. Looking at the code, I thought that the possible values for fixMode were 0 or 1 but I just had a look at class DriverConfiguration and you are right: the possible values are "absolute", anything else is considered as "relative". I think we should improve this, we should accept only these 2 values and throw an exception for any other value, just in case of misspelling problems. Francois-Xavier Le 08/03/2012 14:52, Nicolas Richeton a écrit : > 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... > <mailto:web...@li...> a écrit : >> >> Date: Wed, 7 Mar 2012 11:57:40 +0100 >> From: Victor Montaner <vic...@ze... >> <mailto:vic...@ze...>> >> Subject: [Webassembletool-users] Problem declaring resources in a >> templateused by webassembletool >> To: web...@li... >> <mailto:web...@li...> >> Message-ID: >> <CAN...@ma... >> <mailto: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 >> > > > > ------------------------------------------------------------------------------ > 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 |