File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Can struts block my css Stylesheet? 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 "Can struts block my css Stylesheet?" Watch "Can struts block my css Stylesheet?" New topic
Author

Can struts block my css Stylesheet?

Javier Angulo
Greenhorn

Joined: Aug 29, 2012
Posts: 3
Hi i would appreciate any suggestions, this is the prob:

I was using the tag <s:file and suddenly my webapp lost the css format, all pages have lost it, ive return the struts.xml to the old version, upload only the basic libraries and restart tomcat and still is not working.

I really donĀ“t know what to do instead of cutting my veins.

I edit:

Css file is reacheable, and all code is perfect, seems to be something about struts 2 or tomcat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Check at the browser. Is the link element correct in the rendered HTML?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Javier Angulo
Greenhorn

Joined: Aug 29, 2012
Posts: 3
yes is correct it reaches the .css file
Javier Angulo
Greenhorn

Joined: Aug 29, 2012
Posts: 3
is so weird because some parts of the css works perfect but all positions are wrong this is the page www.tiestime.com/ttime
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I followed that link and it all looks just fine to me. All of the CSS files were downloaded and (as far as I can see) are working. The only 404 I see is for this URL: http://www.tiestime.com/ttime/resources/imgs/footer-logo.png.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can struts block my css Stylesheet?
 
Similar Threads
securing resources in webcontent except for css and javascript.
CSS with XML
To Authors of "The Big Picture "
CSS files in an Application
I think I need this