how to include a specific CSS file into my portlet?

Patrick Gelin <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Organization OSIS
Message-ID <[email protected]>
Hi,

I would like to include a CSS dynamique file, as for the default Jahia
template it's a JSP file including a CSS definition using dynamique
parameters...

As I'm testing my portlet I would like to make a test and incude it into the
body because the header is cutting for a portlet... Later i will use
attributes to propose my web template to include it into the header...

This is my later test:
--------------------------------------------------------------------
(...)
 <body>
        
   <link rel="stylesheet" href="<%=request.getContextPath().trim() +
"/css/webapp_css.jsp"%>" type="text/css"></link>
(...)
--------------------------------------------------------------------

But it doesn't work... I tryed to include the content directly into <style>
tags, and it's ok... I looked into the HTML source page the complete path
and it seems ok:

"/webapp_newsevent_rpn/css/webapp_css.jsp"

I've got some pictures into the same web page storing into
"/webapp_newsevent_rpn/img/*.png" and it's ok, the navigator display
them...

So, is there anybody having an other look to show me the problem?

Thanks.
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.