Quantcast
Viewing all articles
Browse latest Browse all 10

Struts 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" %> 

Example

<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>

Viewing all articles
Browse latest Browse all 10

Trending Articles