• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filepath issues  RSS feed

 
kuhu vora
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This may sound like a stupid question to ask but my web application is not detecting my js. Can someone please help?

Initially I had a relative path which was working in eclipse but not on server. I have now changed it to what I see in my war. I am still getting a 404 error.

Can someone please help?

Path I am using in my page(login.html):

My controller in war is at:

My project structure is attached in the file.

I have tried many times with different filepath but can not figure it out. Please help





project.png
[Thumbnail for project.png]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65768
131
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing can be directly served from under WEB-INF. You need to move all public resources out from under the WEB-INF folder.

Also, se the JspFaq for information on properly formatting resource URLs.
 
kuhu vora
Ranch Hand
Posts: 41
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for helping me out! The link you provided was super helpful
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!