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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 56152
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 16479
    
    2

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can struts block my css Stylesheet?
 
Similar Threads
I think I need this
CSS files in an Application
CSS with XML
securing resources in webcontent except for css and javascript.
To Authors of "The Big Picture "