Struts <html:rewrite> Tag

The Struts <html:rewrite> tag renders a universal resource identifier (URI) that can be used to access CSS, JavaScripts, images and other HTML content. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page.

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 


<link rel="stylesheet" type="text/css" HREF="<html:rewrite page='/css/style.css'/>">
<script type="text/javascript" src="<html:rewrite page='/js/test.js'/>"></script>


No comments yet.

Leave a Reply