I'll answer my own question here. I guess this directive takes effect during compile time 'cause when I try to pre-compile my jsps with the <url-pattern>*.tag</url-pattern> in my web.xml file, I come accross with the following error:
"file: /appFolder/WEB-INF/tags/fields/data.tag(1,14) <%@ attribute directive can only be used in a tag file" I think it won't be possible to trim white spaces from .tag files uwing this directive then... -----Mensagem original----- De: Milanez, Marcus Enviada em: sexta-feira, 9 de maio de 2008 11:21 Para: 'Tomcat Users List' Assunto: RES: trim-directive-whitespaces and .tag files Hi Hassan, No effect. I think that's because we never reference .tag files directly. My guess is that when tomcat engine compiles .tag files into .java files, it ignores my trim-directive. Do you know how this directive work? Does it remove white spaces in every request (like a filter) or during compiling time? Thank you! -----Mensagem original----- De: Hassan Schroeder [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 9 de maio de 2008 11:17 Para: Tomcat Users List Assunto: Re: trim-directive-whitespaces and .tag files On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus <[EMAIL PROTECTED]> wrote: > I'm successfully using trim-directive-whitespaces in my web.xml file, > clearing unecessary white spaces from my pages. The only problem is > that .tag files content is not affected by this directive. What happened when you added this: <jsp-config> <jsp-property-group> <url-pattern>*.tag</url-pattern> <trim-directive-whitespaces>true</trim-directive-whitespaces> </jsp-property-group> </jsp-config> Did it produce an error, or just no effect? -- Hassan Schroeder ------------------------ [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]