Place the <html:base/> tag in the 'head' section of your JSP. Relative paths will be then be calculated based on the location of your JSP.
Alternatively, use the <html:rewrite> tag to rewrite the value of the URL as a context-relative path. <link TITLE="risk style" REL="stylesheet" HREF="<html:rewrite page="/inc/risk.css"/>" TYPE="text/css"> Steve > -----Original Message----- > From: Altug B. Altintas [mailto:[EMAIL PROTECTED] > Sent: July 30, 2003 11:35 PM > To: 'Struts Users Mailing List' > Subject: Path Finder > > > Hi, > > My Jsp page include the followings; > > <link TITLE="risk style" REL="stylesheet" > HREF="../inc/risk.css" TYPE="text/css"> > <script LANGUAGE="JavaScript1.2" > SRC="../js/Calendar1-82.js"></SCRIPT> > <script LANGUAGE="JavaScript1.2" > SRC="../js/Validate.js"></SCRIPT> > <script LANGUAGE="JavaScript1.2" > SRC="../js/functions.js"></SCRIPT> > > When i call this JSP page there is no problem, > http://localhost:8080/engine-struts/jsp/yield/verigirisi-struts.jsp > > CSS file applied to this page but when an error occurs, it goes > valition pages (struts forwards it). > > http://localhost:8080/engine-struts/hesapla.do > > In this validation page i saw that my css file is not applied to that > page. CSS file is not applied because it doesn't find "../inc/risk.css" > > i try all the combination but i couldn't solve it.. > > Any idea ? > > Regards. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]