tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pixel <>
Subject OT: URL Rewrite and Tag Libs
Date Mon, 28 Jan 2002 20:20:22 GMT
After reading the last post on URL rewriting, I started 
thinking.....[look out!]

What if there was a JSP tag library that mirrors the subset of HTML tags 
which support the href attribute and performs URL rewriting on the href? 
Each JSP tag would create it's corresponding HTML tag by calling 
response.encodeUrl() on the href and pass through the remaining attributes.

In other words.

<%@ taglib uri= ""
   prefix="rewrite" %>

<rewrite:a href= "">My Link</rewrite:a>

would return 
<a href='>My Link<a>

additonal tags would be created for <form>, etc.

This way, you could add URL rewriting to HTML pages [excluding 
Javascript] by simply adding a namespace to exsting HTML tags and 
changing the extension to .jsp.

Does something like this exist already?


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message