Hi Enrico,

You need to place your CSS folder outside WEB-INF directory.
Files under WEB-INF will not be accessible from URL entered in the browser.

*The WEB-INF-directory is a protected one to hold internal configuration
> data like the web.xml. Nothing inside should be delivered by HTTP access. No
> URL should contain WEB-INF at all. So if you are having same problem then,
> please move your style sheets, images and all other files to be accessible
> by a browser outside WEB-INF. And if WEB-INF directory would be available
> then the configuration files like web.xml would be available as well which
> will lead to security issues*.
>

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Tue, Sep 13, 2011 at 10:42 PM, Enrico Iorio <writetoenr...@gmail.com>wrote:

> Hi everybody
>
> I'm trying to include some an external css file on a page which comes from
> a ForwardResolution, but it seems not to work at all, while using servlets
> it does.
> The structure of WEB-INF is:
>
>  * WEB-INF>
>      >JSP(folder)
>         >CSS(folder)
>            >stijl.css
>         >home.jsp*
>
> So basically home.jsp and the CSS folder are parallels, a simple relative
> url from the home.jsp page should work:
>   <link rel="stylesheet" href="css/stijl.css" type="text.css" />
>
> But it does not,
> I have also tried this way:
>   <link rel="stylesheet" type="text/css"
> href="${pageContext.request.contextPath}/WebContent/WEB-INF/jsp/css/stijl.css"/>
>
> But nothing,
>
> Do you know if this is an url-based issue?
>
> Thank you, any help would be appreciated, i've never worked with Stripes
> before
>
>
>
> --
> *Enrico Iorio*
>
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry&reg; mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry&reg; DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to