Re: How to reuse the Jahia web site CSS from a webapp deployed into it...
Serge Huber <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Oops sorry it seems that web_css.jsp does not require Jahia's context. You can discard my remarks about that. Otherwise you should build an URL that points directly to the Jahia context like : "/jahia/jsp/jahia/templates/rpn/web_css.jsp". That might work. Regards, Serge Huber. Serge Huber wrote: > > Hi Patrick, > > If this is an application that is embedded in a Jahia page, you should > just not include any styles in your web application and that will > reuse the CSS styles of the page. > > Now if this is an application that is displayed outside of a Jahia > page, this is a problem if you are using a dynamic CSS like > web_css.jsp. web_css.jsp ASSUMES that objects were put on the context > by the Jahia servlet. So you cannot call it directly. Basically the > flow for most JSPs used in Jahia is : > > Browser -> Jahia servlet builds objects and puts them in > request.setAttribute() -> dispatch to JSP that reads from > request.getAttribute() > > If the web_css.jsp is anything like the default one, it *requires* > passing through the Jahia servlet. > > Regards, > Serge Huber. > > Patrick Gelin wrote: > >> Ok, thank you for this information but my CSS is not in the directory >> of my webapp but: >> >> [TOMCAT_HOME]/webapps/ROOT/jsp/jahia/templates/rpn/web_css.jsp >> >> and my webapp is deployed here: >> >> [TOMCAT_HOME]/webapps/ROOT/WEB-INF/var/news-webapps >> >> So, do you think request.getContextPath() + request.getServletPath() >> + "/.." >> is a good url to access web_css.jsp after the webapp deployment? >> >> Thanks. >> >> Philippe Vollenweider wrote: >> >> >> >>> Hello, >>> >>> It should be good; the url to the webapps directory is: >>> String theURL = request.getContextPath() + request.getServletPath() + >>> "/.."; >>> >>> Cheers, >>> >>> Philippe. >>> >>> At 12.07.2005 13:24, you wrote: >>> >>> >>>> Hi, >>>> >>>> I have a web site under Jahia with a web_css.jsp style sheet. I'm >>>> wondering if it's possible web application deployed into: >>>> >>>> JAHIA_HOME/tomcat/webapps/jahia/WEB-INF/new_webapps/MY_SITE_NAME >>>> >>>> has the hability to reuse the web<-css.jsp from tho jahia web site? >>>> >>>> if so, what is the source code of line to write into my JSP? (What >>>> is the >>>> correct path...) >>>> >>>> Thanks. >>>> -- >>>> >>> >>> -------=[ pvollenweider at jahia dot com ]=--------- >>> Jahia : A collaborative source CMS and Portal Server >>> www.jahia.org Community and product web site >>> www.jahia.com Commercial services company >>> >> >> >> >> > >