StrutsCatalog: Use <html:rewrite> to reference stylesheets and other HTML assets.

The html:link rewrite accepts a context-relative URL, and also encodes it if necessary, so resources subject to container managed security can be retrieved.

  <LINK REL='stylesheet' HREF="'<html:rewrite page="/path/to/CSS"/>' TYPE='text/css'> 

-- TedHusted


Comments:

What would this look like in a JSP XML page? The issue is that a true XML document as in JSP XML cannot have '<' or '>' inside of attributes. So the above example would not work as written.

-- NareshSikha

StrutsCatalogHtmlRewrite (last edited 2009-09-20 23:32:36 by localhost)