wood burning stoves 2.0*
The moose likes Struts and the fly likes i kept lossing access to my static content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "i kept lossing access to my static content" Watch "i kept lossing access to my static content" New topic
Author

i kept lossing access to my static content

Renz Alexander
Greenhorn

Joined: Jun 11, 2010
Posts: 28
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

Joined: Sep 29, 2008
Posts: 12617

What did you change in your JSP, if you believe that's what caused it? Roll back.
Renz Alexander
Greenhorn

Joined: Jun 11, 2010
Posts: 28
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: i kept lossing access to my static content
 
Similar Threads
struts 2 hello world error
Struts URL tag issue
Tiles 2.x.x Question
Struts Error Source is null
Spring error when injecting beans