You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sri Sankaran <Sr...@sas.com> on 2002/12/16 21:45:16 UTC
[html:rewrite] Tag not being evaluated
Using
Struts 1.0.2
I am finding that <html:rewrite>s aren't being evaluated before the resulting HTML page is sent to the browser. With the result, the source of the HTML shows things like:
<script language='javascript' src="<html:rewrite page="/scripts/qs.js"/>">
A little background:
The JSP is comprised of several smaller JSPs. For example foo.jsp:
<%@ include file="qsHead.jsp" %>
<!-- Layout stuff -->
<%@ include file="body.jsp" %>
<!-- rewrites here aren't evaluating -->
<!-- etc -->
I can understand if it didn't evaluate *correctly*; but why doesn't it evaluate *at all*?
I am finding that the <html:rewrite> in qsHead.jsp (see below) is evaluating correctly
<%@ include file="../../taglibs.jsp"%>
<head>
<html:base/>
<title><bean:message key="app.appName"/></title>
<link rel='stylesheet' href="<html:rewrite page="/styles/qs.css"/>" type='text/css'>
<script language="JavaScript">
window.defaultStatus="<bean:message key="app.appName"/>";
</script>
</head>
Any ideas?
Sri