I submitted a bug about this. The documentation on the Struts site claims that the page attribute is context relative, when in reality it is moduleRelative (as described in the source documentation). I haven't heard anything back yet though.
-----Original Message----- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 11: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]