I'd recommend opening an issue in Bugzilla for this - maybe we can get the committers to add a property to the <html:rewrite> tag or something that is "moduleSensitive" or something. A simple solution might be to subclass a Struts tag and make it not module sensitive.
Matt > -----Original Message----- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 10:14 AM > To: Struts Users Mailing List > Subject: using images and modules > > > I would like to use modules but keep my images directory in > the same place > for the whole webapp. I have no problem getting images into > JSPs used by > main module actions. They use relative paths where > src="images/...". This > resolves to <webapp>/images. > > In order to use the same relative paths with modules, I have > to modify my > JSPs to use src="../images" since my modules are down one level in the > hierarchy. Is there a way to avoid needing to do this by > telling the module > it's root is the root of the webapp (not the root of the module)? > > html:base is not the answer since that's page specific > I tried using src="/images/..." but that ignored the webapp > in the URL (so > images were being looked for in <server>/<images> instead of > <server>/<webapp>/<images>). > > My structure > Main module: <webapp>/*.do > Another module: <webapp>/admin/*.do > Pages used by modules: <webapp>/web/*.jsp > Images: <webapp>/images/*.gif > > This also applies to CSS and JS files which I have in their > own dirs. I saw > several questions about this in the archives but no answers. > > Anyone? > > thx > andy kriger > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]