Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i kept lossing access to my static content

 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know how or why by while i was editing my jsp some how i don't know what i pressed but i suddenly lost the ability to access some of my static content like javascript files css and my default page for my webapp. i'm using helios and tomcat 7 by the way and even if i change my server back to 6 it's still the same. here's a sample of the error mesage




edit:
ok so think i found the culprit something about setting the extension to "" like

but i'm still not sure if it's the only one though
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you change in your JSP, if you believe that's what caused it? Roll back.
 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah that seems to be the problem it's mostly the problem with the format and the pattern for actions matched inside the web.xml. it seems that because of the change in the extension yo "" struts matches every link as a struts 2 action even static content.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic