wood burning stoves 2.0*
The moose likes Struts and the fly likes how to prevent downloading js file  from my strust application using direct url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to prevent downloading js file  from my strust application using direct url " Watch "how to prevent downloading js file  from my strust application using direct url " New topic
Author

how to prevent downloading js file from my strust application using direct url

bala manian
Ranch Hand

Joined: Nov 05, 2007
Posts: 40
hi frds....

i stored all my js files in js folder.my js folder loction is tomcat3.1->webapps-->myproject->js (folder)

if user enter below url
http://localhost:8080/myproject/js/view.js

it starting downloading..
how to prevent these downloading..are we want given any folder permission in server.xml?
please help..it urgent...waiting for your replies



David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

But the browser needs to be able to download it directly: JavaScript runs on the client. So the JavaScript has to *get* to the client.
 
Consider Paul's rocket mass heater.
 
subject: how to prevent downloading js file from my strust application using direct url
 
Similar Threads
classpath and javac from command line
URL routing
problem while running Junit test in hibernet
How to reference images in Velocity templates
Deploying Servlet in Tomcat 5.0