Announcement Announcement Module
Collapse
No announcement yet.
Acegi + velocity Can't locate css files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Acegi + velocity Can't locate css files

    Hi,

    Very simple problem but not getting anywhere so thought I'd post:

    trying to consolidate all my styles into a css file for my project.
    I have the following Structure:

    ls tomcatdir/webapps/app1/:
    META-INF WEB-INF css

    in the css dir I have a test.css file.

    my interceptor in applicationContext.xml is as follows:
    <property name="objectDefinitionSource">
    <value>
    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    PATTERN_TYPE_APACHE_ANT
    /**=ROLE_ANONYMOUS
    </value>
    </property>

    So anyone can access any page.

    my vm template I have the following:
    <style type="text/css" media="screen">
    @import url("app1/css/test.css");
    @import url("/app1/css/test.css");
    </style>

    But the file does not see the css.

    When I go to the URL of my browser and type in:

    http://servername/app1/css/test.css

    I get a 404.

    Someone please help.

    Cheers,
    Nathan.
Working...
X