Re: OT: URL Rewrite and Tag Libs
Hi, Craig R. McClanahan wrote: 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). Reading that I took a look on the struts tag libs. I noticed that some of them in part duplicate efforts from the JSTL. Is there already a undertanding how to use Struts and the JSTL together? Greetings, Wolfgang smime.p7s Description: S/MIME Cryptographic Signature
Re: OT: URL Rewrite and Tag Libs
Hi, Craig R. McClanahan wrote: 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). What files do I need to use the tag libs only? Greetings, Wolfgang smime.p7s Description: S/MIME Cryptographic Signature
Re: OT: URL Rewrite and Tag Libs
On Tue, 29 Jan 2002, Wolfgang Röckelein wrote: Date: Tue, 29 Jan 2002 10:49:16 +0100 From: Wolfgang Röckelein [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: OT: URL Rewrite and Tag Libs Hi, Craig R. McClanahan wrote: 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). (It's clear if you read the Struts docs but might not be if you only read this mail thread - I am the primary author of Struts, as well as spending my day job time working on Tomcat.) Reading that I took a look on the struts tag libs. I noticed that some of them in part duplicate efforts from the JSTL. The Struts tag libraries preceded the JSTL effort. They have also had a significant positive impact on the development of the JSTL tags themselves (I'm on the JSR-52 expert group that is developing JSTL). Is there already a undertanding how to use Struts and the JSTL together? Sure ... just use them together. There is no restriction on how many different tag libraries you can use. Both libraries can talk to arbitrary JavaBeans underneath, so the same beans can be accessed by tags from either library. Over time, Struts will encourage users to migrate to JSTL (and JavaServer Faces, which it also preceded), but we will continue to support the existing tag libraries for quite a long while -- there are large numbers of applications built on these APIs in the world, and it would be unreasonable to force them to change. One other consideration for JSTL - it requires a Servlet 2.3 / JSP 1.2 environment (such as Tomcat 4), while Struts also runs fine on any server supporting Servlet 2.2 / JSP 1.1. That will matter less and less over time, as more server vendors update their servlet and JSP support to the newer specifications. Greetings, Wolfgang Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: OT: URL Rewrite and Tag Libs
On Tue, 29 Jan 2002, Wolfgang Röckelein wrote: Date: Tue, 29 Jan 2002 14:52:54 +0100 From: Wolfgang Röckelein [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: OT: URL Rewrite and Tag Libs Hi, Craig R. McClanahan wrote: 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). What files do I need to use the tag libs only? (This is now moving towards being a question more relevant on the STRUTS-USER mailing list than here ...) In the lib subdirectory you'll need struts.jar (which contains all the custom tag implementation classes, as well as the framework) and the TLDs. Greetings, Wolfgang Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
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=fe3423fserfdMy Linka 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: OT: URL Rewrite and Tag Libs
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=fe3423fserfdMy Linka 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]