Very cool and thanks!! Scott
-----Original Message----- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 4:38 PM To: Struts Users Mailing List Subject: Re: Hiding pages under WEB-INF Jarnot Voytek Contr AU/SC wrote: > Right, js, css, and image files don't belong under web-inf. I know someone who will disagree vigorously (where are you D.J.?!?) :) Seriously though, many people DO use this technique, and you can in fact put everything under it, even the js, css, img, etc. content... For the OP... as you found out, you can't just link to anything under WEB-INF, as is the intention of that folder's protection. What you will need to do is build yourself an Action that returns the requested item, then point everything at that Action. So, something like: <img src="GetItemAction.do?img=myImage.gif"> ... will call your Action, which presumably retrieves the referenced image and returns it. You can do this for stylesheets, scripts, whatever else you want. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com --------------------------------------------------------------------- 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]