You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Altug B. Altintas" <al...@riskturk.com> on 2003/07/31 08:34:51 UTC
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Path Finder
Posted by Steve Raeburn <sr...@apache.org>.
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:altuga@riskturk.com]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org