Re: Links in CSS vs JSPs

2011-09-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/20/2011 4:45 PM, André Warnier wrote: > Christopher Schultz wrote: >> You can't do this unless all your JSPs are at the same directory >> level, say, in "myapp". > > Why not ? Suppose all stylesheets are in > (tomcat_dir)/webapps/myapp/c

Re: Links in CSS vs JSPs

2011-09-20 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/19/2011 6:06 PM, André Warnier wrote: What I do not understand here (maybe due to my lack of knowledge of JSP pages logic) is why one would need to "fix" anything, if the links are correctly spelled-out in the

Re: Links in CSS vs JSPs

2011-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 9/20/2011 9:09 AM, Konstantin Kolinko wrote: > Read the official CSS spec from W3C on how relative links in css > files are resolved. In CSS 2.1 it is in ch.4.3.4. Citing: "For CSS > style sheets, the base URI is that of the style sheet

Re: Links in CSS vs JSPs

2011-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/19/2011 6:06 PM, André Warnier wrote: > What I do not understand here (maybe due to my lack of knowledge of > JSP pages logic) is why one would need to "fix" anything, if the > links are correctly spelled-out in the first place, taking int

Re: Links in CSS vs JSPs

2011-09-20 Thread Patrick Flaherty
On Sep 20, 2011, at 9:09 AM, Konstantin Kolinko wrote: 2011/9/18 Patrick Flaherty Hi, We have just changed the way we deploy our webapp. We previously were putting our app into the ROOT folder under webapps , not good I know. We now package the app as a war file called myapp.war and pla

Re: Links in CSS vs JSPs

2011-09-20 Thread André Warnier
Patrick Flaherty wrote: ... My question was about why JSP links work *without* the app prefix and the CSS links do not. I think Chris' answer of the JSPs are dynamic and intern automatically get the app prefix where CSS are not dynamic and therefore the CSS link has to account for the app

Re: Links in CSS vs JSPs

2011-09-20 Thread Konstantin Kolinko
2011/9/18 Patrick Flaherty > > Hi, > > We have just changed the way we deploy our webapp. We previously were putting > our app into the ROOT folder under webapps , not good I know. > We now package the app as a war file called myapp.war and place it into the > webapps folder where it explodes in

Re: Links in CSS vs JSPs

2011-09-20 Thread Patrick Flaherty
On Sep 19, 2011, at 6:06 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 9/18/2011 12:55 PM, Patrick Flaherty wrote: All the skins work except image references in the style sheet (css) cannot be found. Yet images referenced in the

Re: Links in CSS vs JSPs

2011-09-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 9/18/2011 12:55 PM, Patrick Flaherty wrote: All the skins work except image references in the style sheet (css) cannot be found. Yet images referenced in the jsps are found! Your JSPs are dynamic and includ

Re: Links in CSS vs JSPs

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 9/18/2011 12:55 PM, Patrick Flaherty wrote: > All the skins work except image references in the style sheet (css) > cannot be found. Yet images referenced in the jsps are found! Your JSPs are dynamic and include the webapp prefix, since

Re: Links in CSS vs JSPs

2011-09-18 Thread André Warnier
Hi. I believe that the problem you are having has nothing to do with Tomcat per se, and everything to do with how absolute and relative link references work in the WWW (or in HTTP/HTML) in general. You need a tutorial on that subject, and to always consider what happens *from the browser's p