Anything that the client will access, i.e. .js or .css files via "href" attributes needs to be exposed to them. I usually put my scripts in a "scripts" folder and my stylesheets in a "styles" folder.
> -----Original Message----- > From: Colin Foulkes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 20, 2004 2:12 PM > To: [EMAIL PROTECTED] > Subject: Problem - Trying to hide javascript files in WEB-INF > > > Hi, > > I'm quite new to Open source and Struts > > I'm trying to convert some Microsoft asp.net pages to a > struts/apache environment; and following advice on the > newgroup, have "hidden" my .jsp pages in directories beneath /WEB-INF. > > However, I have some pages that include script tags for > loading javascript files. When I place the .js files under > the WEB-INF directory they are not accessible to my page. > > The jsp page contains... > <script src=/WEB-INF/scripts/XXX.js> > The output window for local host access (under netbeans ide) > shows the following... "GET /WEB-INF/scripts/XXX.js HTTP/1.1" 404 720 > > If I move the scripts directory out from under WEB-INF, the > page loads fine, the log shows the following "GET > /scripts/XXX.js HTTP/1.1" 304 - > > > Is there a way to do this? To hide javascript files under > WEB-INF and access them from the jsp pages? > > Thanks in advance, > > Colin > > > > --------------------------------------------------------------------- > 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]

