• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript files in Tomcat

 
Jason Low
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to create a web application using the Spring MVC framework, but I am not sure where Javascript files go within the folder structure. Does it go within the WEB-INF folder or else where??

Thanks!
Jay
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, they go anywhere but there. The browser has to be able to download them. So just treat them exactly the same as you would treat an image or an HTML file in your web application.
 
Jason Low
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I actucally just figured it out a few minutes ago haha. I placed them in a new folder under WebContent. Thanks for the reply though.


Paul Clapham wrote:No, they go anywhere but there. The browser has to be able to download them. So just treat them exactly the same as you would treat an image or an HTML file in your web application.


 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually put them in a folder named "scripts", just like I put my stylesheets in a folder named "styles".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic