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= "http://silentplanet.com/taglibs/URLRewrite"
prefix="rewrite" %>
<rewrite:a href= "http://www.silentplanet.com/test.jsp">My Link</rewrite:a>
would return
<a href='
http://www.silentplanet.com/test.jsp?jsessionid=fe3423fserfd>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?
~Scott
--
To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
|