On Mon, 28 Jan 2002, pixel wrote:
> Date: Mon, 28 Jan 2002 15:20:22 -0500
> From: pixel <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: OT: URL Rewrite and Tag Libs
>
> 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?
>
Transparent URL rewriting is one of the things that the struts-html tag
library in Struts does for you. You can use the tag libraries without
using the entire application framework (although you'd be well advised to
look at using that as well).
http://jakarta.apache.org/struts/
> ~Scott
>
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>