tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: javascript access protection.
Date Sat, 03 Nov 2001 17:30:44 GMT
Thierry RAIBAUT at thierry.raibaut@libertysurf.fr wrote:

> Hello,
> 
> could somebody explain me how is it possible to protect some ressources from
> direct access.
> 
> I think about a javascript directory.
> This directory has to be accessed by some JSP pages, but I do not want the
> user to access this directory
> directly with the browser by setting the javascript file url.
> 
> I move my javascript directory under web-inf but by doing this, js files are
> no longer available even for jsp pages.
> 
> thanks a lot for your help.

Javascripts are interpreted BY THE CLIENT, not by the server, so no matter
what, the client NEEDS to se that .js file, and needs to be able to download
it.

    Pier


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message